7374756666

Unlocking multiple luks drives at boot using dropbear

I have two luks formatted partitions which need to be unlocked a boot. To aid in unlocking remotely I use dropbear-initramfs which allows running the cryptroot-unlock script over ssh. However with my default setup this only unlocked the root drive not the second drive. To fix this I changed the /etc/crypttab lines to include the initramfs option

crypt_nas UUID=887c0b7c-3ef1-499c-a36e-e1842bebf69a none luks,initramfs
crypt_root UUID=0e72d245-104a-4aee-b636-a250b234ce3f none luks,initramfs