do not add partitions with unknown filesystems to fstab

pull/63/head
TomasM 2018-03-21 03:30:29 -04:00
parent c153975526
commit b1ccfb0fce
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ fstab_create()
LABEL="$(basename $DEVICE)" LABEL="$(basename $DEVICE)"
OPTS="defaults,noatime,nofail,x-systemd.device-timeout=10" 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" mkdir -p "$1/media/$LABEL"
echo "$DEVICE" "/media/$LABEL" $FS $OPTS 0 0 >> $FSTAB echo "$DEVICE" "/media/$LABEL" $FS $OPTS 0 0 >> $FSTAB
fi fi