]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd-ac-power): correct systemd-ac-power binary path 2124/head
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 20 Mar 2023 11:18:20 +0000 (12:18 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Wed, 22 Mar 2023 07:13:14 +0000 (08:13 +0100)
`systemd-ac-power` has been moved from `/usr/lib/systemd` to `/usr/bin/` since
https://github.com/systemd/systemd/commit/251dc2f1

modules.d/01systemd-ac-power/module-setup.sh

index 084e79271c0c78a8e077543d203f02cd573c6689..c4e7fdd1aef325fb798985a018937a9516099c2e 100755 (executable)
@@ -22,7 +22,7 @@ depends() {
 install() {
 
     inst_rules "$moddir/99-initrd-power-targets.rules"
-    inst_simple "$systemdutildir"/systemd-ac-power
+    inst systemd-ac-power
     inst_simple "$moddir/initrd-on-ac-power.target" "$systemdsystemunitdir/initrd-on-ac-power.target"
     inst_simple "$moddir/initrd-on-battery-power.target" "$systemdsystemunitdir/initrd-on-battery-power.target"