Draft: Add capability to open existing LUKS volumes
See merged bugs #451535, #498199, #529343, #566497, #641264 #660191, #907955 for use cases.
Main features:
- detect and show LUKS header as a filesystem
- re-use the partition settings "format/keep" choice and flag from partman-basicmethods
- fix interaction with partman-lvm for nested LVM-over-LUKS and LUKS-over-LVM
It still needs some polishing, but works for me. I tested it in the following scenario:
- guided partitioning using encrypted LVM -> no regression observed
- manual partitioning and open the previously created encrypted volume -> encrypted volume opened and locked, LVs activated and PV locked, crypttab written as expected
Missing bits:
ask passphrase again if opening failsintegration with OPAL ?
Note: The above bugs contain a patch implementing this feature in a different way by @cjwatson but it seems it was never applied.
Edited by Pascal Hambourg