# none /proc/bus/usb usbfs defaults,nodev,noexec,nosuid,noauto,devgid=1001,devmode=664 0 0
# 192.168.1.101:/backups /mnt/nfs nfs defaults,user,wsize=8192,rsize=8192 0 0
#
-# Warning! Please do *not* change any lines below because they are auto-generated by rebuildfstab!
+# Warning! Please do *not* change any lines below because they are auto-generated.
# If you want to disable rebuildfstab set CONFIG_FSTAB='no' in /etc/grml/autoconfig!
-# See 'man grml-rebuildfstab' for more details about the following entries.
+# See 'man grml-udev-rebuildfstab' for more details about the following entries.
EOF
fi
) 200>/var/run/rebuildfstab.lock
if [ -n "$LABEL" ] && [ -n "$ID_FS_LABEL_ENC" ] ; then
# see check_for_label() in scanpartitions for details
case $ID_FS_LABEL_ENC in
- *\ *|*\x20*)
- addinfo=" # space char inside label ($ID_FS_LABEL_ENC) not supported"
- break ;;
- /)
- addinfo=" # label '/' not supported"
+ *\x*)
+ addinfo=" # special char in label ($ID_FS_LABEL_ENC) not supported"
break ;;
+ *)
+ echo "LABEL=$ID_FS_LABEL_ENC"
+ return
+ break;
esac
-
- echo "LABEL=$ID_FS_LABEL_ENC"
- return
fi
;;
esac
NAME="$DEVNAME"
for name in $DEVLINKS ; do
case $name in
- *usb*|*cdrom*|*dvd*)
+ *usb-sd*|*cdrom*|*dvd*)
NAME="$name"
break;
;;
# if entry is already present ignore it
stringinfile $device $TMPFILE && bailout 0
+if [ "$ID_FS_USAGE" != "filesystem" -a "$ID_FS_TYPE" != "swap" ]; then
+ # blockdevice in question won't be mountable in this case
+ bailout 0
+fi
+
options=noauto,user,dev,suid,exec
case $ID_FS_TYPE in
ntfs)