set "-t auto" as default if fstype is emtpy
parent
6d090d6427
commit
9c6f43f0e7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue