From 2696b0a16ced82722525754d241b5fb5f80790fd Mon Sep 17 00:00:00 2001 From: Willy Tu Date: Sat, 14 Aug 2021 18:38:58 -0700 Subject: meta-google: Add new system.conf for gbmc-systemd-config Add systemd.conf options for watchdog to replace watchdog-conf ``` // interval is 60s by default interval = 10 watchdog-device = /dev/watchdog // The value is in pages. They are presently 4KiB each. // Reset the BMC if it goes below 3MiB min-memory = 768 ``` Tested: ``` $ cat /lib/systemd/system.conf.d/40-system.conf [Manager] DefaultMemoryAccounting=yes RuntimeWatchdogSec=10s WatchdogDevice=/dev/watchdog ``` Change-Id: I51171746669dfeb1efe6c09952efa3457e33c86b Signed-off-by: Willy Tu --- meta-google/recipes-google/systemd/gbmc-systemd-config.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-google/recipes-google/systemd/gbmc-systemd-config.bb') diff --git a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb index 6e26fc99d..843053bc8 100644 --- a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb +++ b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb @@ -11,11 +11,13 @@ SRC_URI:append = " \ file://firmware-updates.target \ file://firmware-updates-pre.target \ file://40-gbmc-forward.conf \ + file://40-system.conf \ " FILES:${PN}:append = " \ ${systemd_unitdir}/coredump.conf.d/40-gbmc-coredump.conf \ ${systemd_unitdir}/resolved.conf.d/40-gbmc-nomdns.conf \ + ${systemd_unitdir}/system.conf.d/40-system.conf \ ${libdir}/sysctl.d/40-gbmc-forward.conf \ " @@ -44,6 +46,9 @@ do_install() { install -d -m0755 ${D}${libdir}/sysctl.d install -m 0644 ${WORKDIR}/40-gbmc-forward.conf ${D}${libdir}/sysctl.d/ + + install -d -m 0755 ${D}${systemd_unitdir}/system.conf.d/ + install -D -m0644 ${WORKDIR}/40-system.conf ${D}${systemd_unitdir}/system.conf.d/ } do_install:append:dev() { -- cgit v1.2.3