]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(resume): add new systemd-hibernate-resume.service
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 26 Sep 2023 07:43:37 +0000 (09:43 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 30 Mar 2024 10:53:28 +0000 (06:53 -0400)
Since https://github.com/systemd/systemd/commit/a628d933, the generator only
does the initial validation of the system info and then enables the new
`systemd-hibernate-resume.service`.

Fixes #2513

modules.d/95resume/module-setup.sh

index d255103366b4b5363775a3ddb24cf9a24778ac75..9204f9cb73871f1435ac8c457d55df93124605db 100755 (executable)
@@ -44,6 +44,7 @@ install() {
     if dracut_module_included "systemd" && [[ -x $dracutsysrootdir$systemdutildir/systemd-hibernate-resume ]]; then
         inst_multiple -o \
             "$systemdutildir"/system-generators/systemd-hibernate-resume-generator \
+            "$systemdsystemunitdir"/systemd-hibernate-resume.service \
             "$systemdsystemunitdir"/systemd-hibernate-resume@.service \
             "$systemdutildir"/systemd-hibernate-resume
         return 0