diff mbox series

[isar-cip-core,15/19] customizations: Enable systemd watchdog

Message ID 89ec2cb2d8709419c8adffdc071242c69e50266a.1649834193.git.jan.kiszka@siemens.com (mailing list archive)
State New
Headers show
Series SWUpdate & EFI Boot Guard refactorings | expand

Commit Message

Jan Kiszka April 13, 2022, 7:16 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This is needed for proper SWUpdate processing and does not harm in other
cases, even if the platform has no watchdog.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 recipes-core/customizations/common.inc             | 6 +++++-
 recipes-core/customizations/files/99-watchdog.conf | 3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 recipes-core/customizations/files/99-watchdog.conf
diff mbox series

Patch

diff --git a/recipes-core/customizations/common.inc b/recipes-core/customizations/common.inc
index d3eb7b8..1124ff2 100644
--- a/recipes-core/customizations/common.inc
+++ b/recipes-core/customizations/common.inc
@@ -16,7 +16,8 @@  FILESPATH_append := ":${FILE_DIRNAME}/files"
 SRC_URI = " \
     file://postinst \
     file://ethernet \
-    file://99-silent-printk.conf"
+    file://99-silent-printk.conf \
+    file://99-watchdog.conf"
 
 WIRELESS_FIRMWARE_PACKAGE ?= ""
 INSTALL_WIRELESS_TOOLS ??= "0"
@@ -34,4 +35,7 @@  do_install() {
 
 	install -v -d ${D}/etc/sysctl.d
 	install -v -m 644 ${WORKDIR}/99-silent-printk.conf ${D}/etc/sysctl.d/
+
+	install -v -d ${D}/etc/systemd/system.conf.d
+	install -v -m 644 ${WORKDIR}/99-watchdog.conf ${D}/etc/systemd/system.conf.d/
 }
diff --git a/recipes-core/customizations/files/99-watchdog.conf b/recipes-core/customizations/files/99-watchdog.conf
new file mode 100644
index 0000000..c02756d
--- /dev/null
+++ b/recipes-core/customizations/files/99-watchdog.conf
@@ -0,0 +1,3 @@ 
+[Manager]
+RuntimeWatchdogSec=60s
+ShutdownWatchdogSec=60s