]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/sleep-config.c
systemd-sleep: always attempt hibernation if configured 14270/head
authorZach Smith <z@zxmth.us>
Sat, 7 Dec 2019 00:37:22 +0000 (16:37 -0800)
committerZach Smith <z@zxmth.us>
Mon, 6 Jan 2020 04:15:38 +0000 (20:15 -0800)
commit52133271a7b3d76bed6d957f75371030193f5282
treedb9af7ffac021282156166fbd8f7f457e03c05fe
parent65ca546f0697f7a17bd435abd0d77bec26dbf28e
systemd-sleep: always attempt hibernation if configured

When calculation of swap file offset is unsupported, rely on the
/sys/power/resume & /sys/power/resume_offset values if configured
rather than requiring a matching swap entry to be identified.

Refactor to use dev_t for comparison of resume= device instead of string.
src/shared/sleep-config.c
src/shared/sleep-config.h
src/sleep/sleep.c