Hi everyone,

So I've been trying to get my encrypted swap working but didn't have a lot of success so far. I have /dev/sda2 as the swap partition and /dev/sda3 as the root partition. I did encrypt the swap partition with a keyfile and the unlock works fine but the problem is that my initramfs asks to decrypt the swap partition before the root partition and since the keyfile is stored in the root partition it still asks me for a password. I use genkernel to make my initramfs and I am passing the crypt_swap, crypt_swap_keydev and crypt_swap_key options but I'm guessing that since /dev/sda2 comes before /dev/sda3, the initramfs tries to decrypt that one first. How can I go around this? Is my only option to try and reorder these partitions?

Thank you!

Reply via email to