]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
perf(watchdog): only install wdctl for the non-systemd case
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 29 May 2025 14:06:26 +0000 (10:06 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 28 Jun 2025 21:33:15 +0000 (17:33 -0400)
Move the installation of wdctl in install() to the non-systemd block as
systemd doesn't use it, so it's only needed by watchdog.sh.

modules.d/04watchdog/module-setup.sh

index cfca223747569bd5f89605ffb7ac1619546f80f6..81673db8890a2f7b29efb486e15f27e8c6099ef7 100755 (executable)
@@ -30,8 +30,9 @@ install() {
         inst_hook pre-pivot 99 "$moddir/watchdog.sh"
         inst_hook cleanup 00 "$moddir/watchdog.sh"
         inst_hook cleanup 99 "$moddir/watchdog.sh"
+
+        inst_multiple -o wdctl
     fi
 
     inst_hook emergency 02 "$moddir/watchdog-stop.sh"
-    inst_multiple -o wdctl
 }