Go to an emergency shell if mounting the root filesystem fails.
parent
2064166d84
commit
09bab2aa8e
2
init
2
init
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue