On 4/18/20 6:20 AM, Sreyan Chakravarty wrote:
On 4/13/20 9:51 AM, Sreyan Chakravarty wrote:
After a lot of experimentation, I did manage to get swap file
hibernation to work.
The dracut module for resuming is, for some reason, not enabled by
default. (At least on the minimal install that I tried. Maybe because
I didn't create a swap partition at install time?) These are the steps
I had to do:
Run "filefrag-v /swapfile" to get the offset.
Edit the grub environment to add the resume and resume_offset options to
the command line.
Regenerate the initramfs using "dracut -f -a resume" to get the resume
script included.
Run "systemctl hibernate".
Thanks so much for all your help. i got hibernation working with the instructions you gave, the key instruction being adding the resume module to dracut.
Set selinux to permissive.
I weirdly did not have to do this, worked just fine by typing systemctl hibernate.
That's because you already added the selinux changes to fix that.
_______________________________________________
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