On 4/16/22 8:31 AM, Alexander Zhang wrote:
Hello,
I'm trying to enable hibernation to a swap file on Fedora 35. I've created a
swapfile on a new BTRFS subvolume, added the resume dracut module, and set the kernel
command line arguments. I've also added SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1 to
the environments of systemd-hibernate and systemd-logind since the swap size check is
apparently incorrect for some reason. Currently, hibernating with echo platform >
/sys/power/disk and echo disk > /sys/power/state works, but doing systemctl hibernate
only locks and briefly turns off the screen. I found these lines in the logs, which seems
to indicate that SELinux is causing the issue:
First try would be to disable SELinux
to confirm your hypothesis.
Regards.
--
Roberto Ragusa mail at robertoragusa.it