Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Encrypted device in /etc/crypttab is not opened at boot (Read 917 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Encrypted device in /etc/crypttab is not opened at boot

I have an encrypted partition in /etc/crypttab that is not being decrypted upon boot. The device-mapper and dmcrypt services are in the boot runlevel. Here is the line I have in /etc/crypttab:

home-crypt      UUID=cd6d4d5a-980b-4f38-aa7f-a44e925198c7       /etc/cryptsetup-keys.d/home-crypt.key   noauto

I also have the following line in /etc/fstab:

/dev/mapper/home-crypt   /home   ext4   defaults   0 2

/etc/cryptsetup-keys.d/home-crypt.key is a keyfile for the encrypted partition and I can unlock it manually with cryptsetup and that keyfile. Any idea what my issue might be?

Re: Encrypted device in /etc/crypttab is not opened at boot

Reply #1
Take a look at /etc/conf.d/dmcrypt

As far as I know, /etc/crypttab works under systemd, s66suite and maybe some other init systems. The openRC counterpart is  /etc/conf.d/dmcrypt 

Gentoo wiki might be helpful here.

 

Re: Encrypted device in /etc/crypttab is not opened at boot

Reply #2
Thanks, this worked! Oddly enough, /etc/crypttab has comments in it even on my OpenRC system, so I don't know what that's about.