This can be used to initiate a resume from hibernation by path to a swap device containing the hibernation image.
The respective templated unit is also added. It is instantiated using path to the desired resume device.
42483a7 hibernate-resume: add a tool to write a device node's major:minor to /sys/power/resume.
.gitignore | 1 +
Makefile-man.am | 7 +++
Makefile.am | 17 ++++--
man/systemd-hibernate-resume@.service.xml | 81 ++++++++++++++++++++++++++++
src/hibernate-resume/Makefile | 1 +
src/hibernate-resume/hibernate-resume.c | 81 ++++++++++++++++++++++++++++
units/.gitignore | 1 +
units/systemd-hibernate-resume@.service.in | 20 +++++++
8 files changed, 206 insertions(+), 3 deletions(-)
Upstream: github.com