Go to an emergency shell if mounting the root filesystem fails.

master
Bill Nottingham 2009-01-10 14:59:13 -05:00 committed by Jeremy Katz
parent 2064166d84
commit 09bab2aa8e
1 changed files with 1 additions and 1 deletions

2
init
View File

@ -83,7 +83,7 @@ while [ ! -e $root ]; do
done done
echo -e "\n\nMounting rootfs after $tries seconds" echo -e "\n\nMounting rootfs after $tries seconds"
ln -s "$root" /dev/root ln -s "$root" /dev/root
mount -o ro /dev/root $NEWROOT mount -o ro /dev/root $NEWROOT || emergency_shell


# now we need to prepare to switchroot # now we need to prepare to switchroot
mount --bind /dev $NEWROOT/dev mount --bind /dev $NEWROOT/dev