For encrypted swap partition, you have to:
-
get the UUIDs of your swap partition (the “luks” encrypted one and the unencrypted one) with the ‘Disks’ app or
sudo blkid
-
sudo nano /etc/default/grub
:- add the ENCRYPTED UUID instead of the unencrypted one, so that grub at boot finds the encrypted swap partition to resume from suspend.
-
sudo nano /etc/crypttab
- add the ENCRYPTED swap partition id like:
<yourname> luks-<yourencryptedUUID> none luks
or<yourname> UUID=<yourencryptedUUID> none luks
or<yourname> UUID=<yourencryptedUUID> none luks
or<yourname> /dev/mapper/nvme.... none luks
, so that pureos opens the encrypted swap partition and give it a name.
- add the ENCRYPTED swap partition id like:
-
sudo nano /etc/fstab
- add the unencrypted UUID like before. So that pureos can use it as a swap partition
-
sudo nano /etc/initramfs-tools/conf.d/resume
- add the address /dev/… or UUID= of the unencrypted partition, sot that it works.
You will have to give your passphrase at boot and resume for this swap partition just after the passphrase for the normal partition, so twice. Maybe you can tell the system to read the swap passphrase in the main partition but I do not know how to do that.