Hello,

> I only have /home encrypted, not the root filesystem... my crypttab
> looks like this:
> 
> durandal-home_crypt /dev/mapper/durandal-home none luks
> durandal-swap_crypt /dev/mapper/durandal-swap durandal-home_crypt 
> cipher=aes-cbc-essiv:sha256,size=256,hash=sha256,keyscript=/lib/cryptsetup/scripts/decrypt_derived
> 
> However the initramfs hooks only include the durandal-swap_crypt in the
> initramfs, thus I get an error, "decrypt_derived: failed to find
> durandal-home_crypt in dmtable" at boot time.

yes, the initramfs cryptroot hook doesn't detect devices from which swap
key is derived by default. the applied (but yet untested) patch should
fix this. please apply it against
/usr/share/initramfs-tools/hooks/cryptroot, regenerate your initramfs
with 'update-initramfs -u', and report back whether it works.

> Alternatively, if there is another way to set up encrypted swap so that
> I can hibernate to it, I would love to hear it. :)

as already mentioned in buglog, you could inverse the order and derive
the key for encrypted home from encrypted swap instead. that should work
out of the box.

greetings,
 jonas

Attachment: signature.asc
Description: Digital signature

Reply via email to