]> code.ossystems Code Review - openembedded-core.git/commit
systemd: add back alternatives for init utitilies
authorChen Qi <Qi.Chen@windriver.com>
Mon, 22 Oct 2018 07:03:43 +0000 (15:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Oct 2018 08:31:49 +0000 (08:31 +0000)
commit43ef422d80e0544232a9361187ac1c608304c969
tree5144ddf37b57fb7da04e65e2081355df7a1e557b
parent0f43ea8510ae6148a49eb25accac407b6b301b43
systemd: add back alternatives for init utitilies

Add back alternatives for init utilities to avoid regression.

These alternatives were removed when upgradeing systemd to 239.
They were removed out of the logic that init utitilies should be
bound to init manager. However, it turned out that two use cases
were not covered.

1) initramfs using commands like 'reboot' from busybox.
2) Users use customized busybox defconfig which enables init utilities.

The first use case caused a regression bug in yocto.
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=12914
Patches were sent to fix the reboot problem.

But this is not enough. As we may have the second use case. In such
situation, users will find themselves having regression error when
using 'busybox + systemd' (and busybox is installed after systemd,
overriding the systemd symlinks).

So in order to avoid regression, add back these alternatives.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_239.bb