]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-block/mount-root.sh: default rootfs to auto, even without fstab
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:01:30 +0000 (20:01 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:01:30 +0000 (20:01 +0100)
modules.d/95rootfs-block/mount-root.sh

index 16a7bd0af6e65c6ab131342b75f478582f9d9a13..476fa85010e22e1695553d054c3a1c5c17c9e7ef 100755 (executable)
@@ -71,6 +71,7 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
         fsckoptions="-a $fsckoptions"
     fi
 
+    rootfs=${fstype:-auto}
     rootopts=
     if getargbool 1 rd.fstab -n rd_NO_FSTAB \
         && ! getarg rootflags \
@@ -79,7 +80,6 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
         # if $NEWROOT/etc/fstab contains special mount options for 
         # the root filesystem,
         # remount it with the proper options
-        rootfs=${fstype:-auto}
         rootopts="defaults"
         while read dev mp fs opts rest; do 
             # skip comments