diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-23 04:40:54 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-23 19:39:42 +0300 |
commit | 194ff4f1f5d44b12e9cb06ddafa6adb20174a13c (patch) | |
tree | 823835cd29daf8901a31ac14c7e6534abf199be3 /meta-ibm/meta-witherspoon/recipes-core/systemd | |
parent | 4feb727cd6b77a68bdaca63e121b378d814f5eaf (diff) | |
download | openbmc-194ff4f1f5d44b12e9cb06ddafa6adb20174a13c.tar.xz |
[Subtree] Bring openbmc machines to top level
The new subtree model brings the subtrees up from the openbmc-machines
layer.
Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm/meta-witherspoon/recipes-core/systemd')
4 files changed, 33 insertions, 0 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-size-policy.conf b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-size-policy.conf new file mode 100644 index 000000000..fb84c6734 --- /dev/null +++ b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-size-policy.conf @@ -0,0 +1,8 @@ +# This file overrides a default for journald +# +# - Set a maximum size for journald in filesystem +# +# See journald.conf(5) for details + +[Journal] +SystemMaxUse=2.5M diff --git a/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-storage-policy.conf b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-storage-policy.conf new file mode 100644 index 000000000..eb746a56f --- /dev/null +++ b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/journald-storage-policy.conf @@ -0,0 +1,8 @@ +# This file overrides a default for journald +# +# - Default journald to write to persistent storage +# +# See journald.conf(5) for details + +[Journal] +Storage=persistent diff --git a/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/systemd-journald-override.conf b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/systemd-journald-override.conf new file mode 100644 index 000000000..0ca86f863 --- /dev/null +++ b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd/systemd-journald-override.conf @@ -0,0 +1,3 @@ +[Unit] +Wants=local-fs.target +After=local-fs.target diff --git a/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd_%.bbappend b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 000000000..847714b38 --- /dev/null +++ b/meta-ibm/meta-witherspoon/recipes-core/systemd/systemd_%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" +SRC_URI += "file://journald-storage-policy.conf" +SRC_URI += "file://systemd-journald-override.conf" +SRC_URI += "file://journald-size-policy.conf" + +FILES_${PN} += "${systemd_unitdir}/journald.conf.d/journald-storage-policy.conf" +FILES_${PN} += "${systemd_system_unitdir}/systemd-journald.service.d/systemd-journald-override.conf" +FILES_${PN} += "${systemd_unitdir}/journald.conf.d/journald-size-policy.conf" + +do_install_append() { + install -m 644 -D ${WORKDIR}/journald-storage-policy.conf ${D}${systemd_unitdir}/journald.conf.d/journald-storage-policy.conf + install -m 644 -D ${WORKDIR}/systemd-journald-override.conf ${D}${systemd_system_unitdir}/systemd-journald.service.d/systemd-journald-override.conf + install -m 644 -D ${WORKDIR}/journald-size-policy.conf ${D}${systemd_unitdir}/journald.conf.d/journald-size-policy.conf +} |