There is a tutorial for 36 Workstation. I for now replaced every “/swap” with “/var/swap”, but not sure if that would just work.
Like creating the swap partition in the /var directory and using it the same way.
Do you need to change partitions during setup or something? Is everything included in the setup tutorial?
Yes, you can follow that tutorial and get hibernation to work on Fedora Silverblue.
I have some comments on that guide, however:
- dracut is not needed for Silverblue.
- You can get the resume offset with
sudo btrfs inspect-internal map-swapfile -r /var/swap/swapfile if your btrfs tools are v >= 6.1, which they are on Silverblue 37. There’s no need to download and compile an external program.
hibernate-resume.service configuration is unnecessary and just slows down the hibernation process. Rather, you should just add your swapfile to
To elaborate on item 3 above, there’s no harm in automatically mounting your swapfile via
/etc/fstab. By default it will get a much lower priority than your zram swap, so it will most likely only ever be used when hibernating. The system will automatically know to use the swapfile for hibernating, because the zram swap is not large enough, as it is configured to be 50% the size of your total RAM.