Source: grub-pc
Version: 2.02~beta2-7
Severity: normal

Having run into #612402, I investigated.

The system's fstab contained:
/dev/mapper/vg_cac-root_cac /               ext4    errors=remount-ro 0 1
So that was not the cause of the UUID being passed to grub.

The probing that is done in 10_linux finds lvm:

+ /usr/sbin/grub-probe --device /dev/mapper/vg_cac-root_cac --target=abstraction
+ abstraction=lvm
+ test xlvm  = xlvm

Note the extra whitespace in the above. This is the source of at least
this manifestation of the bug.

root@clam:/boot>if [ "$(/usr/sbin/grub-probe --device 
/dev/mapper/vg_cac-root_cac --target=abstraction)" = "lvm" ]; then echo good; fi
root@clam:/boot>if [ "$(/usr/sbin/grub-probe --device 
/dev/mapper/vg_cac-root_cac --target=abstraction)" = "lvm " ]; then echo buggy; 
fi
buggy

grub-probe is outputting a whitespace delimited list, but the for loop
in uses_abstraction sets IFS to newline.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to