X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=scripts%2Fgrml-udev-rebuildfstab;h=123f8f734a6b6102a464ace83bce4f9191b1488e;hb=bcb6b08212da6aa3097015f8fa10ad0c6de181fd;hp=5b588d54289c0a1a9458fb25e2bfac91333df87b;hpb=9647e6a1f5de49bfb0264048407cf1066ee7a59d;p=grml-udev-config.git diff --git a/scripts/grml-udev-rebuildfstab b/scripts/grml-udev-rebuildfstab index 5b588d5..123f8f7 100755 --- a/scripts/grml-udev-rebuildfstab +++ b/scripts/grml-udev-rebuildfstab @@ -138,9 +138,18 @@ iso9660) break; ;; *) -if [ -n "$LABEL" ] && [ -n "$ID_FS_LABEL" ] ; then - case $ID_FS_LABEL in *\ *|*\x20*) break ;; esac - echo "LABEL=$ID_FS_LABEL" +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" + break ;; + esac + + echo "LABEL=$ID_FS_LABEL_ENC" return fi ;;