[Pkg-cryptsetup-devel] Bug#488842: no integration with lvm in initramfs
martin f krafft
madduck at debian.org
Tue Jul 1 15:27:57 UTC 2008
Package: cryptsetup
Version: 2:1.0.6-2
Severity: normal
File: /usr/share/initramfs-tools/scripts/local-top/cryptroot
On a standard d-i-install system, I have /dev/hda2 hold a LUKS
volume, which is made available as /dev/mapper/hda2_crypt after
decryption. /dev/mapper/hda2_crypt is a physical LVM volume, holding
the "vg0" volume group, where individual logical volumes reside.
Upon boot, /usr/share/initramfs-tools/scripts/local-top/lvm is run
before cryptroot, because cryptroot makes sure it depends on
everything else:
prereqs()
{
# Make sure that cryptroot is run last in local-top
for req in /scripts/local-top/*; do
As a result, the LVM hook, which somehow knows about vg0 and tries
to activate it, fails and prints something like
lvm: Failed: volume group `vg0' not found
to the console just before the password prompt. This is ugly and
confusing.
After decryption, cryptroot now does the LVM stuff itself, which is
also ugly and error-prone.
Please integrate better with the lvm hook and let it take care of
LVM-related stuff when the time is ripe. Don't do LVM stuff from the
cryptroot hook.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.26-1 The Linux Kernel Device Mapper use
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.26-1 The Linux Kernel Device Mapper use
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libuuid1 1.40.11-1 universally unique id library
cryptsetup recommends no packages.
-- debconf-show failed
--
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20080701/f4e6708c/attachment.pgp
More information about the Pkg-cryptsetup-devel
mailing list