Browse Source

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

master
Bill Nottingham 16 years ago committed by Jeremy Katz
parent
commit
09bab2aa8e
  1. 2
      init

2
init

@ -83,7 +83,7 @@ while [ ! -e $root ]; do @@ -83,7 +83,7 @@ while [ ! -e $root ]; do
done
echo -e "\n\nMounting rootfs after $tries seconds"
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
mount --bind /dev $NEWROOT/dev

Loading…
Cancel
Save