Bug#743126: lvm detection is broken due to whitespace issue

Andrei POPESCU andreimpopescu at gmail.com
Sun Mar 30 18:50:24 UTC 2014


Control: reassing -1 src:grub2 2.02~beta2-7

On Du, 30 mar 14, 14:01:10, Joey Hess wrote:
> 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 at clam:/boot>if [ "$(/usr/sbin/grub-probe --device /dev/mapper/vg_cac-root_cac --target=abstraction)" = "lvm" ]; then echo good; fi
> root at 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



-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20140330/17ec3aa8/attachment.sig>


More information about the Pkg-grub-devel mailing list