hibernate-resume-generator: add a generator for instantiating the resume unit

System Internals / systemd - Ivan Shapovalov [gmail.com] - 26 August 2014 15:19 UTC

hibernate-resume-generator understands resume= kernel command line parameter and instantiates the systemd-resume@.service accordingly if it is passed.

This enables resume from hibernation using device specified on the kernel command line, and it may be specified either as "/dev/disk/by-foo/bar" or "FOO=bar", not only "/dev/sdXY" which is understood by the in-kernel implementation.

So now resume= is brought on par with root= in terms of possible ways to specify a device.

d2c6882 hibernate-resume-generator: add a generator for instantiating the resume unit.
.gitignore | 1 +
Makefile-man.am | 2 +
Makefile.am | 11 +++-
man/kernel-command-line.xml | 14 +++-
man/systemd-hibernate-resume-generator.xml | 93 +++++++++++++++++++++++++++
src/resume-generator/Makefile | 1 +
src/resume-generator/resume-generator.c | 95 ++++++++++++++++++++++++++++
7 files changed, 215 insertions(+), 2 deletions(-)

Upstream: github.com


  • Share