This depends on the systemd hook. It adds systemd-hibernate-resume@.service and systemd-hibernate-resume-generator which perform userspace parsing of resume= kernel parameter, allowing to specify the resume device by its persistent path ("resume=/dev/disk/by-foo/bar") or fstab-like specifier ("resume=FOO=bar"), just like the root= parameter. --- Given that relevant functionality has just landed in systemd git, it makes sense to pipeline things a bit (even if actual applying will be delayed until systemd-217). Also, does this need to be a separate hook or can be merged into 'systemd' hook itself? install/sd-resume | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 install/sd-resume diff --git a/install/sd-resume b/install/sd-resume new file mode 100644 index 0000000..2995a8e --- /dev/null +++ b/install/sd-resume @@ -0,0 +1,22 @@ +#!/bin/bash + +build() { + map add_binary \ + /usr/lib/systemd/systemd-hibernate-resume \ + /usr/lib/systemd/system-generators/systemd-hibernate-resume-generator + + map add_systemd_unit \ + systemd-hibernate-resume@.service \ + local-fs-pre.target +} + +help() { + cat <<HELPEOF +This hook adds builtin systemd facility for resuming from disk. It allows to +specify the resume device by its persistent path (resume=/dev/disk/by-foo/bar) +or in fstab-like way (resume=FOO=bar), just like it's possible with the root= +parameter. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: -- 2.1.0