resume: Backward compatibility for resume_offset
authorBen Hutchings <ben@decadent.org.uk>
Thu, 19 Jul 2018 20:34:08 +0000 (21:34 +0100)
committerBen Hutchings <benh@debian.org>
Sat, 5 Jun 2021 18:20:42 +0000 (19:20 +0100)
commit9863a22986912c0a1ebbe866a53f11d3a7c9720f
treeca8751ddb879c07600b17cc0c411bafa798501cc
parent6d5077788a90792db772f440e909e7c59d8f19c4
resume: Backward compatibility for resume_offset

Forwarded: not-needed

In Debian we will need to maintain backward compatibility with Linux
4.9 at least until after the "buster" release.  Therefore we need to
accept that /sys/power/resume_offset might not exist.

If we can't open that file because it doesn't exist, we should check
whether the offset we are trying to set is the offset that the kernel
would use anyway.  In that case, continue.

Gbp-Pq: Name resume-backward-compatibility-for-resume_offset.patch
usr/kinit/resume/resumelib.c