]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
set "-t auto" as default if fstype is emtpy
authorHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 12:01:03 +0000 (14:01 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 12:01:03 +0000 (14:01 +0200)
modules.d/95rootfs-block/mount-root.sh
modules.d/95rootfs-block/parse-root-opts.sh

index 8acd3c5f6baa31225bfbf863b12f7f6418062040..93246231601b0fe8205939412c123b61e9b4da41 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 if [ ! -s /.resume -a "$root" ]; then
-    mount $fstype -o "$rflags" "$root" "$NEWROOT" && ROOTFS_MOUNTED=yes
+    mount ${fstype:-t auto} -o "$rflags" "$root" "$NEWROOT" && ROOTFS_MOUNTED=yes
 fi
index 77aed558a13551d5ffe608a1ae0a4da29e8b9ebc..9c49aa95df878f4cfb4f68fcea83ec571255449d 100755 (executable)
@@ -22,6 +22,6 @@ else
     getarg rw && rflags=rw || rflags=ro
 fi
 
-fstype="$(getarg rootfstype=)" && fstype="-t ${fstype}" || fstype="-t auto"
+fstype="$(getarg rootfstype=)" && fstype="-t ${fstype}" 
 
 export fstype rflags root