do not add partitions with unknown filesystems to fstab
parent
c153975526
commit
b1ccfb0fce
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue