summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass
diff options
context:
space:
mode:
authorjmbills <42755197+jmbills@users.noreply.github.com>2019-10-25 19:18:16 +0300
committerGitHub <noreply@github.com>2019-10-25 19:18:16 +0300
commit0dbb60593ebb5a62190c0e6cff7f1770493303a2 (patch)
tree0df2ce67404dbca3ddc4ee063dbfd9ae455be682 /meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass
parent34a3942845ac3264ce27c648ae5486d302c3e6d8 (diff)
parentcc9cea46d74d280de03c713c8b555153fd811f09 (diff)
downloadopenbmc-0dbb60593ebb5a62190c0e6cff7f1770493303a2.tar.xz
Merge branch 'intel' into intel2
Diffstat (limited to 'meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass')
-rw-r--r--meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass b/meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass
index 4cc3845c6..20b77d1be 100644
--- a/meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass
+++ b/meta-openbmc-mods/meta-common/classes/systemd-watchdog.bbclass
@@ -4,7 +4,11 @@ add_watchdog_confs() {
count=5 # allowed reboots
for service in $(ls $D/lib/systemd/system | grep -o ".*service"); do
- if [[ $service == *"mapper-wait"* ]]; then
+ if [[ "$service" == *"mapper-wait"* ]]; then
+ continue
+ fi
+
+ if [ "$service" = "system-watchdog.service" ]; then
continue
fi