]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Go to an emergency shell if mounting the root filesystem fails.
authorBill Nottingham <notting@redhat.com>
Sat, 10 Jan 2009 19:59:13 +0000 (14:59 -0500)
committerJeremy Katz <katzj@redhat.com>
Mon, 12 Jan 2009 16:32:51 +0000 (11:32 -0500)
init

diff --git a/init b/init
index 9b7cfe995a68cf4c5bb03509c27f32ff5e7073a3..ce6359bf3fd231920aede584b91b63442fa7223a 100755 (executable)
--- 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