Automounting Luks over LVM volumes

General support questions
codeology
Posts: 4
Joined: 2017/09/25 14:51:36

Automounting Luks over LVM volumes

Postby codeology » 2017/10/18 02:00:24

I have a luks volume (secrets) on top of an LVM logical volume (vg1-lvm). As I want to mount the luks volume automatically at boot, I configured the /etc/fstab and /etc/crypttab as below, and have a luks key stored at /root/key (permission 440, root:root).

The problem is that everytime I still need to mannually type in the luks password during boot in order to continue the process. What did I do wrong?

/etc/fstab

Code: Select all

/dev/mapper/secrets      /mnt/secrets      xfs      defaults   1 2


/etc/crypttab

Code: Select all

secrets   /dev/mapper/vg1-lvm      /root/key      luks