base/init: reset PATH after the /run move

master
Harald Hoyer 2011-03-31 14:10:22 +02:00
parent 79471f365e
commit 9853774351
1 changed files with 2 additions and 1 deletions

View File

@ -373,7 +373,6 @@ info "Switching root"

wait_for_loginit

export PATH="$OLD_PATH"

if [ -d "$NEWROOT"/run ]; then
mount --move /run "$NEWROOT"/run
@ -388,6 +387,8 @@ else
umount -l /run
fi

export PATH="$OLD_PATH"

if [ -f /etc/capsdrop ]; then
. /etc/capsdrop
info "Calling $INIT with capabilities $CAPS_INIT_DROP dropped."