]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd: fix broken links for sysvinit-compatible commands
authorYi Zhao <yi.zhao@windriver.com>
Sat, 26 Oct 2024 05:49:46 +0000 (13:49 +0800)
committerSteve Sakoman <steve@sakoman.com>
Mon, 25 Nov 2024 21:54:20 +0000 (13:54 -0800)
commit681e3d20c2ac16778e302b468ec278aed9562639
tree5cb0396380f20d3a8174c44bcbeb928642fbed7f
parent4f58037a49ef538d89d9c6df81b1b2d8a2eab4d7
systemd: fix broken links for sysvinit-compatible commands

Since commit[1], PACKAGECONFIG[sysvinit] is not enabled by default when
sysvinit is not in DISTRO_FEATURES, which causes the following
sysvinit-compatible commands/services to not be built and installed:

  runlevel
  telinit
  rc-local.service
  systemd-initctl
  systemd-initctl.service
  systemd-rc-local-generator
  systemd-sysv-generator
  systemd-update-utmp-runlevel.service

Therefore, links to these commands/services should only be created when
PACKAGECONFIG[sysvinit] is enabled.

[1] https://git.openembedded.org/openembedded-core/commit/?id=3668235fd60a9027608f37251c4b453ed21b3687

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a20b698f1acdee972cf1ff570b09a2e2c36bef1a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/systemd/systemd_256.5.bb