do not add partitions with unknown filesystems to fstab

This commit is contained in:
TomasM
2018-03-21 03:30:29 -04:00
parent c153975526
commit b1ccfb0fce
+1 -1
View File
@@ -789,7 +789,7 @@ fstab_create()
LABEL="$(basename $DEVICE)"
OPTS="defaults,noatime,nofail,x-systemd.device-timeout=10"
if [ "$FS" != "swap" -a "$FS" != "squashfs" -a "$DEVICE" != "$BOOTDEVICE" ]; then
if [ "$FS" != "" -a "$FS" != "swap" -a "$FS" != "squashfs" -a "$DEVICE" != "$BOOTDEVICE" ]; then
mkdir -p "$1/media/$LABEL"
echo "$DEVICE" "/media/$LABEL" $FS $OPTS 0 0 >> $FSTAB
fi