Comment 0 for bug 282189

Revision history for this message
Tony Lewis (tonylewis) wrote :

Scenario:

My root fs is on LVM which has some LVs (including root) over a single VG over a single PV which is a physical partition.

I create an encrypted PV, and extend the VG with it. I do not, however, migrate any part of the root fs to the new PV.

"dmsetup deps" shows that the root fs depends only on the physical partition, not on the encrypted partition. However, the VG cannot start without that encrypted PV being available. "dmsetup deps" does not accurately detect that the root fs now depends on the encrypted PV being available.

This has bad consequences for booting. If I run "update-initramfs -u" it uses "dmsetup deps", and fails to note that there is now a "cryptroot" element involved. System will not boot (Recovery is possible using a live CD to then remove the encrypted partition from the VG)

This is probably a bug with dmsetup. Alternately you could consider it a bug with initramfs-tools, which needs a better way to detect this scenario.