I have a file system on LVM inside LUKS on a 2nd SSD that I'd like to mount at boot time. The OS boots fine on the main (non-LUKS) SSD.

/etc/crypttab contains a line mapping a UUID to a name, with no keyfile.

/etc/fstab contains a line mapping /dev/LVMvg/volume to /home/special

But I'm not asked for the passphrase at boot.

I can do it manually once booted (cryptdisks_start asks for the passphrase, decrypts it, and then LVM picks up the volumes enabling me to mount /home/special.) But I'd like all this to happen early in the boot.

How can I make the early processes ask me for the crypt password?

Thanks!

EDIT: Solved!

Thanks (blush) to man crypttab ... Add initramfs to the options field in crypttab does the trick. I was a bit confused though because man crypttab tells me that Systemd's crypttab is different and doesn't support the initramfs option... but I'm using systemd and it worked. Anyway, it did work. Phew.

Thanks for answers though!

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 months ago* (last edited 3 months ago)

Not a DE thing. In /etc/crypttab, you can point to.a keyfile or password to unlock the disk.

So you unlock the OS disk, and on that now readable OS disk are keyfiles and passwords that then unlock the other disks.

  • source
  • parent