diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index 009e9af7c87b..ee18c320c97f 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 <