diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-11-29 16:39:53 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-01-08 19:52:32 +0300 |
commit | c6219fadbd15fcc9bd2e3e0d992a972baff59ede (patch) | |
tree | b715e59bbe7d37c0bef3bd4bd533d51c1b138ede /meta-phosphor/recipes-core/systemd/systemd_%.bbappend | |
parent | 80c141dda99348ab2da3d8549e35000ef9b3528f (diff) | |
download | openbmc-c6219fadbd15fcc9bd2e3e0d992a972baff59ede.tar.xz |
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>
Diffstat (limited to 'meta-phosphor/recipes-core/systemd/systemd_%.bbappend')
-rw-r--r-- | meta-phosphor/recipes-core/systemd/systemd_%.bbappend | 5 |
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" |