set "-t auto" as default if fstype is emtpy

master
Harald Hoyer 2009-05-20 14:01:03 +02:00
parent 6d090d6427
commit 9c6f43f0e7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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