tools-hardened/desktop: Adds KERNEL_DIR env var to emerge calls

It is important that when emerging packages no kernel configuration
is taken from the running kernel, to fix this all calls to emerge
have been prepended with the KERNEL_DIR env var which includes the
kernel src dir that emerge should look at inside the chroot.
This commit is contained in:
Devan Franchini 2014-10-06 13:50:02 -04:00
parent e35587b117
commit 301b3bcf25
3 changed files with 10 additions and 5 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash -l
kernel_dir="/usr/src/linux-tinhat"
source /etc/profile
env-update
emerge -evq --keep-going --with-bdeps=y world
KERNEL_DIR="${kernel_dir}" emerge -evq --keep-going --with-bdeps=y world