[pkg-cryptsetup-devel] Bug#419571: Patch to mkinitramfs hook

Doug Huff mith at jrbobdobbs.org
Wed May 19 00:38:39 UTC 2010


The problem is the mkinitramfs hook in the cryptsetup package assumes (incorrectly) that dmsetup will return all devices needed to bring up the VG that the root (and resume) LV is on.

The problem is dmsetup only reports the physical devices that the lv lives on, not all lvs required to activate the VG.

Here's an (ugly) patch that fixes this with so that after finding the physical device it then checks with lvdisplay to find the rest of the volumes in the VG so that it can be started properly. You will get prompted for every passphrase for every key by default without further customization to the initrd, but I think this is better behavior than failing to boot without manually recreation of the initrd.

This should fix both the install bug and the other bug related to adding an encrypted PV to a VG in a live system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_all_pvs_for_root_vg.patch
Type: application/octet-stream
Size: 1953 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100518/048ae5a6/attachment.obj>


More information about the pkg-cryptsetup-devel mailing list