Hibernate is not working (complains my swap is not encrypted - though it is!

F37, disk setup:
[ykaul@ykaul /]$ lsblk
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 600M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
└─nvme0n1p3 259:3 0 475.4G 0 part
└─luks-988de73a-f7ab-4137-9ac6-c11ace0e21c8 253:0 0 475.3G 0 crypt
├─fedora-home 253:1 0 120G 0 lvm /
├─fedora-swap 253:2 0 34G 0 lvm [SWAP]
└─fedora-home–0 253:3 0 321.3G 0 lvm /home

But the kernel isn’t happy:
[115020.414085] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

Though my swap is in a LV that is under an encrypted partition - any idea why it won’t hibernate my laptop (Dell, UEFI boot)?

That’s probably because you’ve got Secure Boot turned on.

The kernel_lockdown man page says:

On an EFI-enabled x86 or arm64 machine, lockdown will automatically enabled if the system boots in EFI Secure mode.

1 Like

Indeed - and that sucks. I had to disable EFI secure mode.