Precise (12.04) has cryptsetup v.1.4.1, and these patches basically work for that version also.
(1) /lib/cryptsetup/cryptdisks.functions works with no changes (2) /usr/share/initramfs-tools/hooks/cryptroot works with no changes (3) /usr/share/initramfs-tools/scripts/local-top/cryptroot needs a single " " added. I've broken @Glen's combined "cryptroot" patch into two, made the small mod, and am attaching it here. Usage - The first script adds a valid option to crypttab: header=<filename> When the initramfs is created, the other two scripts include <filename> in the initramfs and keep track of how to assemble the boot disk on startup. When the scripts look for <filename> to include it, the search will be first in the conf.d directory, which defaults to: /etc/initramfs-tools/conf.d. If it is not found there, then it is searched as an absolute path. As far as I can tell, <filename> has to be a normal file, though cryptsetup allows a device. I haven't tested this yet, but I am close to trying and will report back when I do. ** Patch added: "cryptsetup-1.4.3.ubuntu.precise.initrd.cryptroot-script.patch" https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1223622/+attachment/3956417/+files/cryptsetup-1.4.3.ubuntu.precise.initrd.cryptroot-script.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1223622 Title: add support for crypttab mounting of luks devices with detached headers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1223622/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
