diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 0cbae48729..fe78f3aba5 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh @@ -178,7 +178,7 @@ rm_dir() { get_label_name() { # Get the LABEL or PARTLABEL - LABEL=`/sbin/blkid | grep "$1:" | grep -o 'LABEL=".*"' | cut -d '"' -f2` + LABEL=`/sbin/blkid "$1" | grep -o 'LABEL=".*"' | cut -d '"' -f2` # If the $DEVNAME has a LABEL or a PARTLABEL if [ -n "$LABEL" ]; then # Set the mount location dir name to LABEL appended