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

Ian Campbell ijc at hellion.org.uk
Tue Feb 8 10:40:54 UTC 2011

Package: lvm2
Version: 2.02.66-5
Severity: important
File: /usr/share/initramfs-tools/scripts/local-top/lvm2

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? Maybe that's a case
of "don't do that then".


-- System Information:
Debian Release: 6.0
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  dmsetup                      2:1.02.48-5 The Linux Kernel Device Mapper use
ii  libc6                        2.11.2-11   Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.48-5 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-7       GNU readline and history libraries
ii  libudev0                     164-4       libudev shared library
ii  lsb-base                     3.2-27      Linux Standard Base 3.2 init scrip

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information

More information about the pkg-lvm-maintainers mailing list