I’m using Manjaro KDE with an encrypted /home drive (unlocked by password). Additionally to that I’ve got an encrypted VeraCrypt partition for shared use with my Windows 11 installation. The VeraCrypt drive is getting unlocked with a key file that’s located on my /home drive.
To unlock the VeraCrypt partition at boot, I’ve configured the /etc/crypttab:
veracrypt-data /dev/nvme0n1p8 /dev/null tcrypt-veracrypt,tcrypt-keyfile=/home/user/veracrypt-keyfile
And in the /etc/fstab:
/dev/mapper/veracrypt-data /home/user/veracrypt_data auto uid=1000,gid=1000,nodev,nofail 0 0
The problem that I now have is that the crypttab is executed at boot before my /home drive is mounted via password. I get this while the boot process:
[FAILED] Failed to start Cryptography Setup for veracrypt-data
[DEPEND] Dependency failed for Lucal Encrypted Volumes.
[DEPEND] Dependency failed for /dev/mapper/veracrypt-data
Is there a way to let crypttab wait until the encrypted /home is mounted?