From dab85f7b4053baf8457f044da7d54c5f0e3844d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20J=C3=A4ggi?= Date: Wed, 11 Mar 2020 16:34:38 +0100 Subject: [PATCH] systemd-conf: changed journald storage to persistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With persistent storage systemd journal logs don't get lost upon reboot. Limited use of persistent memory with SystemMaxUse to 256M. BugzID: 61999 Signed-off-by: Tobias Jäggi --- ...anged-journald-storage-to-persistent.patch | 42 +++++++++++++++++++ recipes-core/systemd/systemd-conf_%.bbappend | 3 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 recipes-core/systemd/systemd-conf/0001-changed-journald-storage-to-persistent.patch diff --git a/recipes-core/systemd/systemd-conf/0001-changed-journald-storage-to-persistent.patch b/recipes-core/systemd/systemd-conf/0001-changed-journald-storage-to-persistent.patch new file mode 100644 index 0000000..0c9c56a --- /dev/null +++ b/recipes-core/systemd/systemd-conf/0001-changed-journald-storage-to-persistent.patch @@ -0,0 +1,42 @@ +From 6050a8a8110d6521605914b2a246f7d9f835fea4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tobias=20J=C3=A4ggi?= +Date: Wed, 11 Mar 2020 16:01:39 +0100 +Subject: [PATCH] changed journald storage to persistent +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +With persistent storage systemd journal logs don't get lost upon reboot. +Limited use of persistent memory with SystemMaxUse to 256M. + +BugzID: 61999 + +Signed-off-by: Tobias Jäggi +--- + src/journal/journald.conf | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/journal/journald.conf b/src/journal/journald.conf +index 2f1c661153..617ed51148 100644 +--- a/src/journal/journald.conf ++++ b/src/journal/journald.conf +@@ -12,14 +12,14 @@ + # See journald.conf(5) for details. + + [Journal] +-#Storage=auto ++Storage=persistent + #Compress=yes + #Seal=yes + #SplitMode=uid + #SyncIntervalSec=5m + #RateLimitIntervalSec=30s + #RateLimitBurst=10000 +-#SystemMaxUse= ++SystemMaxUse=256M + #SystemKeepFree= + #SystemMaxFileSize= + #SystemMaxFiles=100 +-- +2.11.0 + diff --git a/recipes-core/systemd/systemd-conf_%.bbappend b/recipes-core/systemd/systemd-conf_%.bbappend index 09b4def..22af0f5 100644 --- a/recipes-core/systemd/systemd-conf_%.bbappend +++ b/recipes-core/systemd/systemd-conf_%.bbappend @@ -2,7 +2,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${MACHINE}/${PN}:${THISDIR}/${PN}:" SRC_URI_append = " \ file://system.conf \ - " + file://0001-changed-journald-storage-to-persistent.patch \ + " do_install_append() { mkdir -p ${D}/etc/systemd/