From: Michael Prokop Date: Mon, 27 Dec 2010 14:43:55 +0000 (+0100) Subject: Check for space char inside label and ignore label then. X-Git-Tag: v0.0.7~4 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=bcb6b08212da6aa3097015f8fa10ad0c6de181fd;p=grml-udev-config.git Check for space char inside label and ignore label then. --- 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 ;;