diff options
Diffstat (limited to 'meta-unit-core/recipes-core')
3 files changed, 25 insertions, 0 deletions
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 |
