meta-somdevices: systemd: Disable journal flush.
authorJosep Orga <jorga@somdevices.com>
Thu, 6 Apr 2023 09:45:03 +0000 (11:45 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 6 Apr 2023 09:45:03 +0000 (11:45 +0200)
ยท Not to prolong boot time as explained here:
https://unix.stackexchange.com/questions/414793/can-i-mask-the-systemd-journal-flush-service-and-run-journalctl-flush-later-ma

Signed-off-by: Josep Orga <jorga@somdevices.com>
recipes-core/systemd/systemd_%.bbappend [new file with mode: 0644]

diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend
new file mode 100644 (file)
index 0000000..a46280a
--- /dev/null
@@ -0,0 +1,7 @@
+SUMMARY = "Disable journal flush"
+
+PR = "somdevices.0"
+
+do_install_append () {
+    rm -f ${D}/lib/systemd/system/sysinit.target.wants/systemd-journal-flush.service
+}