summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-11-29 08:39:53 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-01-08 11:52:32 -0500
commitc6219fadbd15fcc9bd2e3e0d992a972baff59ede (patch)
treeb715e59bbe7d37c0bef3bd4bd533d51c1b138ede
parent80c141dda99348ab2da3d8549e35000ef9b3528f (diff)
downloadtalos-openbmc-c6219fadbd15fcc9bd2e3e0d992a972baff59ede.tar.gz
talos-openbmc-c6219fadbd15fcc9bd2e3e0d992a972baff59ede.zip
phosphor: systemd: add init alternative
This is removed upstream in thud (poky rev: ada8a5d) but we have a recipe that depends on it (preinit-mounts). preinit-mounts is only added to the rootfs when DISTRO_FEATURES contains obmc-ubi-fs. preinit-mounts might be a bit of a hack; getting filesystems mounted just right is typically the role of an initramfs. It may make sense to (re)visit how that is done and at that time we can drop this support. (From meta-phosphor rev: 2fb0a1b55ce9d4f133f34eda6e6df0aead585fef) Change-Id: Iac2acd7e2f23055387a3250392461a78ec361da8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-phosphor/recipes-core/systemd/systemd_%.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
index 7ab626e00..213f32797 100644
--- a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
@@ -15,3 +15,8 @@ FILES_${PN} += "${systemd_unitdir}/network/default.network"
do_install_append() {
install -m 644 ${WORKDIR}/default.network ${D}${systemd_unitdir}/network/
}
+
+ALTERNATIVE_${PN} += "init"
+ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd"
+ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
+ALTERNATIVE_PRIORITY[init] ?= "300"
OpenPOWER on IntegriCloud