Bug#503627: lvm2: links to other important lvm functions missing from initramfs

Jameson Graef Rollins jrollins at phys.columbia.edu
Mon Oct 27 02:57:34 UTC 2008


Package: lvm2
Version: 2.02.39-2
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I recently had a problem that involved being dropped into the
emergency shell of the initramfs: the rootfs was on lvm on a raid
array that was not properly detected during boot. I was able to use
mdadm to get the raid going, but I was then not immediately able to
get lvm going because the only readily available lvm command was
/sbin/vgchange, which on it's own was not sufficient.  I remembered
that all the lvm commands are just symlinks to the single lvm binary,
so I just created a link from /sbin/lvm to /sbin/vgchange and was then
able to have access to the rest of the commands, but this seemed like
a bit of unnecessary work.

I would like to propose that links for all lvm commands get created in
the initramfs.  I believe that it would only increase the size of the
initramfs by less than 1kbyte, and would prove very useful in
situations like I describe above.  I assume the needed changes would
only have to be made to /usr/share/initramfs-tools/hooks/lvm2, but
since I am unfamiliar with the initramfs-tools hooks, I am hesitant to
propose a patch myself.

Thanks for maintaining such an important package.

- -- System Information:
Debian Release: lenny/Si
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  libc6                        2.7-14      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.27-4 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-3       GNU readline and history libraries

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
ii  dmsetup                      2:1.02.27-4 The Linux Kernel Device Mapper use

- -- debconf information excluded

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBAgAGBQJJBS4bAAoJEO00zqvie6q8e6AP/0DRy3feG7bQLr0hAsQjKksN
LxVtq+e1NtDD451QnE/j1kLucKi6jMtb+vcSPBYxCEU6lUBHlOebq8FLVO3TssTH
e4kUyy+OpzsZRXfusjo34HctQ3H34YgCC/ABk//qyhp+iFZbTipLS0/57X3oWsaD
N9yFPUpQuHwQpQqPel1Bq8hSNTOeKPc49K5BMS6AX9sxOJ5pTo3aFFLs5kMlLmmM
KRWYS37/3da+wHb9NTNwh2rJNB1oKGwSqUPNgPyKcenwjcuiem3oeXa4n100A0vm
Ox0HLi0a47mqb98vuhTv/xPJ6D6EWnVN+n3gSBSqGQ9+pVnw7pXaSDjpGt/9n+ZK
HHrjsNFJk5vbMRsMS7/apgRcCTi+YoHeFFT59E2VDh06r/kWPb5u2J7YSs+tkfDq
uLcb3LmYSfto4MfZR4f/UvCpiGvuAwYFw3ctWdOikVnnmE7KbkggIKwFhq/Irdx1
bx1FNcj6Dkz12Y5X0p5Uhnr6haY7B1nUhKrHIUgZyKBn2eTNY2M0kpLDzTpg7cai
QypZSGWComrL1ad55II0lxvK7hUFDseCuncTy94GWt7z9Bn3pefvUYd0tSwcxHKD
Q3U5FDwHIrikKy7mCE0GaLm1jSWAZrXiVsaMa62G1oQ0xkXsKHL7Nn5zV3bagX5w
aaPAGsUVzll3pUiWEHJK
=Y6aA
-----END PGP SIGNATURE-----





More information about the pkg-lvm-maintainers mailing list