]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix -t auto for fstype=""
authorAndreas Thienemann <andreas@bawue.net>
Wed, 20 May 2009 14:51:50 +0000 (16:51 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 14:51:50 +0000 (16:51 +0200)
modules.d/95rootfs-block/mount-root.sh

index 93246231601b0fe8205939412c123b61e9b4da41..77a6b37d5d6ebcff5b7b9360befb373cd56d71a5 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 if [ ! -s /.resume -a "$root" ]; then
-    mount ${fstype:-t auto} -o "$rflags" "$root" "$NEWROOT" && ROOTFS_MOUNTED=yes
+    mount ${fstype:--t auto} -o "$rflags" "$root" "$NEWROOT" && ROOTFS_MOUNTED=yes
 fi