Getting hibernation to work on PureOS 10 with encrypted swap partition

The swap partition is encrypted by randomized key at each boot (wiped out) to prevent data leaks. This breaks hibernation.

More info

There was activity last year to the open task ⚓ T535 Increase OEM-Swap-Partition to enable hibernation / hib. on emergency shutdown due to low battery

jonas.smedegaard assigned this task to mak.May 27 2021, 05:04
jonas.smedegaard triaged this task as Normal priority.

Maybe you can enable hibernation with swap file (not swap partition), see Hibernation/Hibernate_Without_Swap_Partition - Debian Wiki