Hello all, I'm trying to implement resuming from hibernation with systemd-based initramfs, i. e. in terms of systemd unit files. That is, there should be a unit which waits for the resume device and writes its major:minor into /sys/power/resume.
I've chosen to write a templated resume@<path>.service and a generator which parses 'resume=' kernel parameter and enables a corresponding instance of the resume@.service unit. The resume@.service itself shall be ordered so that it is activated when there are no filesystems mounted read-write, except tmpfs instances. It will be good if it works both from initramfs and from real rootfs (if it is mounted RO). So, here are some questions: - is it the way to go (overall)? - is it OK to use generators for outlined purpose? - how to order resume@.service and where to symlink it? I'm using Arch, if that matters -- but, IIUC, Arch strives to do everything "in the upstream's way", so there should be no distro-specific details. Thanks, -- Ivan Shapovalov / intelfx /
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel