From 09bab2aa8e369509a78c35d0d1af022ff34dddb7 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sat, 10 Jan 2009 14:59:13 -0500 Subject: [PATCH] Go to an emergency shell if mounting the root filesystem fails. --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init b/init index 9b7cfe99..ce6359bf 100755 --- a/init +++ b/init @@ -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