From 60fe98ebdd3a3a70871db1fe47427399f785c1ec Mon Sep 17 00:00:00 2001 From: unitexe Date: Tue, 13 Jan 2026 00:56:46 -0600 Subject: User systemd journals working --- .../packagegroups/packagegroup-unit-systemd.bb | 6 ++++++ .../systemd/systemd-conf-journal-persistent-storage.bb | 17 +++++++++++++++++ .../journald-persistent-storage.conf | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 meta-unit-core/recipes-core/packagegroups/packagegroup-unit-systemd.bb create mode 100644 meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage.bb create mode 100644 meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage/journald-persistent-storage.conf (limited to 'meta-unit-core/recipes-core') diff --git a/meta-unit-core/recipes-core/packagegroups/packagegroup-unit-systemd.bb b/meta-unit-core/recipes-core/packagegroups/packagegroup-unit-systemd.bb new file mode 100644 index 0000000..0641d74 --- /dev/null +++ b/meta-unit-core/recipes-core/packagegroups/packagegroup-unit-systemd.bb @@ -0,0 +1,6 @@ +SUMMARY = "Unit systemd packages" + +inherit packagegroup + +RDEPENDS:${PN}:append = " systemd-analyze" +RDEPENDS:${PN}:append = " systemd-conf-journal-persistent-storage" diff --git a/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage.bb b/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage.bb new file mode 100644 index 0000000..7dcdb49 --- /dev/null +++ b/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage.bb @@ -0,0 +1,17 @@ +SUMMARY = "Systemd journal persistent storage drop-in configuration" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${UNIT_CORE_LAYERDIR}/LICENSE;md5=38bf13be5d6979b28bd8adddb2f2f9b3" + +SRC_URI = "file://journald-persistent-storage.conf" + +RDEPENDS:${PN}:append = " systemd" + +S = "${UNPACKDIR}" + +do_install:append() { + install -D -m 0644 ${UNPACKDIR}/journald-persistent-storage.conf ${D}${sysconfdir}/systemd/journald.conf.d/journald-persistent-storage.conf +} + +FILES:${PN} = "\ + ${sysconfdir}/systemd/journald.conf.d/journald-persistent-storage.conf \ +" diff --git a/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage/journald-persistent-storage.conf b/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage/journald-persistent-storage.conf new file mode 100644 index 0000000..21dfde0 --- /dev/null +++ b/meta-unit-core/recipes-core/systemd/systemd-conf-journal-persistent-storage/journald-persistent-storage.conf @@ -0,0 +1,2 @@ +[Journal] +Storage=persistent -- cgit v1.2.3