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>
Fri, 1 Feb 2019 05:00:57 +0000 (05:00 +0000)
commitf177650d307850199f30cb5062c265146371ec35
tree5b5d17492085f4c329ad923bb42f66db7859b1eb
parent0ca75abc273b3bdb5eba214dcd8e218b40d45b59
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