> 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. > Set selinux to permissive. > Run "systemctl hibernate". Wait hibernation with a swap file worked for you ? Wow, thats great. I knew there might be something wrong with the dracut configuration since Manjaro is able to resume from a swap file in an encrypted LVM. But it uses initrd as its initial ramdisk, which it configures with mkinitcpio.conf. While Fedora uses dracut. I have one question though: If the resume script is disabled in dracut then how is Fedora able to resume from a swap partition ? I mean isn't that the same as resuming from a swap file ? It can resume from a swap partition even if its encrypted but not from a swap file ? Is the resume script specific to swap files ? Also could you tell me where did you get the list of dracut modules from ? _______________________________________________ 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