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:
parent
e35587b117
commit
301b3bcf25
3 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue