diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-08-12 14:03:47 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-08-14 02:28:47 +0300 |
commit | 0e72d71a67f8d29df926af2a8c249a521ee62680 (patch) | |
tree | 41b79f72ec15509067c292e957a281e31107585a /meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb | |
parent | f14643da2deabab4b79e896acb4440a95aa54889 (diff) | |
download | openbmc-0e72d71a67f8d29df926af2a8c249a521ee62680.tar.xz |
meta-phosphor: systemd-policy: move to systemd
Don't install systemd policy if:
- systemd is not being installed
- a non phosphor distro
Use RRECOMMENDS for easy opt-out in Phosphor based distros.
(From meta-phosphor rev: 2641990831230d85ee7cb5fdc29450ad561a4799)
Change-Id: Ie3154cc6ee8d257ffa92463c49d3755a15379663
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb')
-rw-r--r-- | meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb b/meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb new file mode 100644 index 000000000..21433976b --- /dev/null +++ b/meta-phosphor/recipes-core/systemd/phosphor-systemd-policy.bb @@ -0,0 +1,20 @@ +SUMMARY = "Phosphor systemd configuration overrides" +DESCRIPTION = "Overrides for systemd and its applications" +PR = "r1" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +DEPENDS += "systemd" + +SRC_URI += "file://service-restart-policy.conf" +SRC_URI += "file://journald-maxlevel-policy.conf" + +FILES_${PN} += "${systemd_unitdir}/system.conf.d/service-restart-policy.conf" +FILES_${PN} += "${systemd_unitdir}/journald.conf.d/journald-maxlevel-policy.conf" + + +do_install() { + install -m 644 -D ${WORKDIR}/service-restart-policy.conf ${D}${systemd_unitdir}/system.conf.d/service-restart-policy.conf + install -m 644 -D ${WORKDIR}/journald-maxlevel-policy.conf ${D}${systemd_unitdir}/journald.conf.d/journald-maxlevel-policy.conf +} |