Thanks for this!
On Wed Mar02'22 03:01:44PM, Samuel Sieb wrote:
I just tried this out in a VM. I did an install of F35 with a swap partition and it setup everything for hibernating including the kernel command line parameter. "systemctl hibernate" does the full hibernating process, but resuming doesn't work. This seems like a rather unfortunate bug. Why set everything up so that you can hibernate, but not resume?
Yes, I had this same experience and thought. Where should a bug report be filed in this case? Funny if no one else has reported this yet.
The fix is to run "dracut -a resume -f". This will update the initramfs to include the bits that let resume work. In order for this to continue working with kernel updates, you need to add a dracut config file with the module.
How do I add a dracut config file?
There appears to be a systemd hibernate resume generator, but it doesn't seem to be working. Maybe that is what was supposed to handle the resume, but it doesn't.
zram and zswap don't make any difference, other than a swap partition is not necessarily created now for an install. Hibernation will use the physical swap partition that has enough space.
I see, thanks!
Best wishes, Ranjan