Created attachment 8131 [details] hibernate-resume from swap file klibc-utils/resume.c hibernate-resume from swap file. - write offset in /sys/power/resume_offset according to the kernel's document uswsusp.txt - Doing this the kernel will hibernate and resume successfully from a swap file.
Created attachment 8156 [details] hibernate-resume from swap file checking for "/sys/power/resume_offset", because oldest kernel versions doesn't have it
I'm interested in how this patch is not adopted?
Created attachment 8826 [details] Updated patch (Now also removed superfluous parameter to /sys/power/resume)
Upping Importance some. This prevents people from using hibernation with a swap file and is fixed easily with the attached patch.
Applied, thank you.
The additional parameter in /sys/power/resume is for compatibility with tuxonice on kernel 2.6. Modern kernel versions don't use this parameter.