There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If swap file is used instead of swap partition then resume module will not be included. Maybe it would be better to check that swap is enabled?
Sorry, something went wrong.
@SukhikhN , I don't think you should be able to resume from a swap file
Why? Resuming works if I add this module manually.
@SukhikhN what is your kernel command line then?
See also: https://www.kernel.org/doc/Documentation/power/swsusp.txt
* If you do resume from initrd after your filesystems are mounted...
* ...bye bye root partition.
Using swap file to resume documented here https://www.kernel.org/doc/Documentation/power/swsusp-and-swap-files.txt
Filesystem is not mounted before resuming - kernel finds swap file area using resume_offset parameter.