]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(watchdog): do not depend on initqueue if systemd is used
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 29 May 2025 14:04:34 +0000 (10:04 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 28 Jun 2025 21:33:15 +0000 (17:33 -0400)
initqueue is not used when systemd is included in the initramfs.

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

index 3406ae65d258f52fe5f9aadf6ccb43f985d54947..cfca223747569bd5f89605ffb7ac1619546f80f6 100755 (executable)
@@ -7,7 +7,10 @@ check() {
 
 # called by dracut
 depends() {
-    echo watchdog-modules initqueue
+    echo watchdog-modules
+    if ! dracut_module_included "systemd"; then
+        echo initqueue
+    fi
     return 0
 }