From 362f0f752b972ac2cb83dce972e5271f638633d5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Nov 2006 16:47:14 +0000 Subject: [PATCH] * Don't put every package in the boot environment in $PATH but rather create a symlink tree and put that in $PATH. svn path=/nixos/trunk/; revision=7161 --- boot/boot-stage-2-init.sh | 9 ++------- boot/boot-stage-2.nix | 30 ++++++++++++++++++++++++------ configuration/boot-environment.nix | 2 +- 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index 009e9af7c87..ee18c320c97 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -11,7 +11,7 @@ echo # Set the PATH. export PATH=/empty -for i in @path@; do +for i in @startPath@; do PATH=$PATH:$i/bin if test -e $i/sbin; then PATH=$PATH:$i/sbin @@ -135,12 +135,7 @@ EOF # Additional path for the interactive shell. -for i in @extraPath@; do - PATH=$PATH:$i/bin - if test -e $i/sbin; then - PATH=$PATH:$i/sbin - fi -done +PATH=@fullPath@/bin:@fullPath@/sbin cat > /etc/profile <