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 <ben@decadent.org.uk>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commit73e8dc0f5d162109a550ec7e11c8d9d174f024c1
treeb112d910f139943e7fb943c645b9094833e0a6f8
parent5b6658a18a9895e1afcf4bb4b557c994c6d02dae
resume: Backward compatibility for resume_offset

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