On Mon, 2023-07-10 at 22:23 +0100, Patrick O'Callaghan wrote: > On Mon, 2023-07-10 at 15:39 -0400, Jonathan Billings wrote: > > > > On Jul 9, 2023, at 06:14, Patrick O'Callaghan > > <pocallaghan@xxxxxxxxx> > > wrote: > > > > > > I found this handy guide: > > > > > > https://fedoramagazine.org/hibernation-in-fedora-36-workstation/ > > > > > > It does require some fiddling around to work out the swapfile's > > > physical offset on the drive, but I'm going to try it. > > > > It appears that there are some btrfs tools to make this a bit > > easier > > than the instructions used in the above guide: > > > > https://btrfs.readthedocs.io/en/latest/Swapfile.html > > Thanks, that's a bit simpler. So, I'm 99% there. I've managed to set everything up and successfully suspended and restarted the system, but to do so I had to disable SElinux as I was getting a permissions error on the swap file: Jul 12 14:48:55 Bree systemd-sleep[13247]: Failed to find location to hibernate to: Permission denied The UUID and offset of the file are correct, and it works if I setenforcing to 0. # ls -lZ /SWAP/swapfile -rw-------. 1 root root unconfined_u:object_r:unlabeled_t:s0 34359738368 Jul 12 12:46 /SWAP/swapfile I freely confess to ignorance on how to fix this. What incantation should I invoke to prevent SElinux from blocking me? poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue