]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd-sleep: use swaps in priority order
authorZach Smith <z@zxmth.us>
Mon, 15 Jul 2019 03:01:20 +0000 (20:01 -0700)
committerLennart Poettering <lennart@poettering.net>
Mon, 29 Jul 2019 10:59:17 +0000 (12:59 +0200)
commit88bc86fcf895da0d51ddaf93d17b4280f4e60d74
treee1ff1dde5f76a8476de739c852f89d01d5ec79bd
parenta18a3aacd34643be46ed91f6c3f2971d01bfbc5f
systemd-sleep: use swaps in priority order

In situations where hibernation is requested but resume= and
resume_offset= kernel parameters are not configured, systemd
will attempt to locate a suitable swap location by inspecting
/proc/swaps. This change will use the first suitable swap with
the highest configured priority.
TODO
src/shared/sleep-config.c
src/shared/sleep-config.h