5
[Question] Encrypted Partition Unlock via Root Unlocking
(programming.dev)
Discussion community about the Arch Linux distro.
Wiki : https://wiki.archlinux.org/
Site : https://archlinux.org/
Packages : https://archlinux.org/packages/
GitLab : https://gitlab.archlinux.org/archlinux
Downloads : https://archlinux.org/download/
Use a different encryption key for your swap partition, then put that in a file on your (encrypted) root. In
/etc/crypttab
, where you list the encrypted partition and the device name for the unencrypted view, you can list the key file too. That way the swap partition will be automatically decrypted during the boot process and before swap is enabled.I believe there may be issues resuming from suspend doing this, but I've not tested that.