Bug#612402: /usr/share/initramfs-tools/scripts/local-top/lvm2: initramfs hook does not activate volume group when root=UUID=... syntax used

Jakub Wilk jwilk at debian.org
Thu Jul 28 12:23:10 UTC 2011


* Ian Campbell <ijc at hellion.org.uk>, 2011-02-08, 10:40:
>When using the root=UUID=... syntax (the default with grub2) for a root 
>filesystem in LVM the local-top/lvm2 script does not activate the 
>volume group and the initramfs dumps me into a rescue shell. Running 
>"lvm vgchange -aly" and exiting the shell is sufficent to allow the 
>boot to continue. Using GRUB_DISABLE_LINUX_UUID=true in 
>/etc/default/grub is also sufficient to work around the issue.
>
>This is because the script will bail on paths which don't start 
>/dev/mapper. Presumably this can be worked around by using
>  lvm vgchange -aly --ignorelockingfailure
>when $dev matches UUID=* (and perhaps LABEL=*?) similar to the existing 
>LILO "fe[0-9]*" and /dev/root workarounds.
>
>I guess the current scheme would also break if one were to use the 
>alternative /dev/Vol00/root naming rather than /dev/mapper/Vol00-root?

Oh yes, it does break in such a case, too. I "tested" it today in 
practice. :/

-- 
Jakub Wilk





More information about the pkg-lvm-maintainers mailing list