From bcb6b08212da6aa3097015f8fa10ad0c6de181fd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 27 Dec 2010 15:43:55 +0100 Subject: [PATCH] Check for space char inside label and ignore label then. --- scripts/grml-udev-rebuildfstab | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 ;; -- 2.1.4