IS_DUPLICATE_FS_LABEL: Add a space for the grep pattern

Otherwise it will match PARTLABEL, we want only LABEL.
This commit is contained in:
Benoît S. 2018-04-10 15:44:59 +02:00
parent dd596c0390
commit fee78ee9f4

View file

@ -748,7 +748,7 @@ if [ -e /etc/debian_version ]; then
# Do it only if thereis blkid binary
if [ -x "$(which blkid)" ]; then
tmpFile=$(mktemp -p /tmp)
for part in $(blkid | grep -v raid_member | grep -Eo 'LABEL=".*"' | cut -d'"' -f2); do
for part in $(blkid | grep -v raid_member | grep -Eo ' LABEL=".*"' | cut -d'"' -f2); do
echo "$part" >> "$tmpFile"
done
tmpOutput=$(sort < "$tmpFile" | uniq -d)