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.

Attachment: find_all_pvs_for_root_vg.patch
Description: Binary data

Reply via email to