Blame SOURCES/0436-watchdog-Do-not-add-hooks-if-systemd-module-is-inclu.patch

712866
From e5439c9b3751dca1570c67d32a4ccc873c3c77a5 Mon Sep 17 00:00:00 2001
712866
From: Pratyush Anand <panand@redhat.com>
712866
Date: Wed, 16 Mar 2016 09:09:09 +0530
712866
Subject: [PATCH] watchdog: Do not add hooks if systemd module is included
712866
712866
When systemd is present, let it manage watchdog feed.
712866
712866
Signed-off-by: Pratyush Anand <panand@redhat.com>
712866
Cc: Dave Young <dyoung@redhat.com>
712866
Cc: Don Zickus <dzickus@redhat.com>
712866
Cc: Harald Hoyer <harald@redhat.com>
712866
---
712866
 modules.d/04watchdog/module-setup.sh | 5 +++++
712866
 1 file changed, 5 insertions(+)
712866
712866
diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh
5c6c2a
index b7725ef7..7e32210e 100755
712866
--- a/modules.d/04watchdog/module-setup.sh
712866
+++ b/modules.d/04watchdog/module-setup.sh
712866
@@ -11,6 +11,11 @@ depends() {
712866
 }
712866
 
712866
 install() {
712866
+    # Do not add watchdog hooks if systemd module is included
712866
+    # In that case, systemd will manage watchdog kick
712866
+    if dracut_module_included "systemd"; then
712866
+	    return
712866
+    fi
712866
     inst_hook cmdline   00 "$moddir/watchdog.sh"
712866
     inst_hook cmdline   50 "$moddir/watchdog.sh"
712866
     inst_hook pre-trigger 00 "$moddir/watchdog.sh"