]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: fix configure option for dropping sysv support
authorChen Qi <Qi.Chen@windriver.com>
Tue, 17 Mar 2026 05:17:16 +0000 (22:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Mar 2026 09:41:18 +0000 (09:41 +0000)
Add three extra configuration options to make our systemd stop
supporting sysvinit. Without these three options, we'll have in
config.h:

  build/config.h:#define HAVE_SYSV_RC_LOCAL 1
  build/config.h:#define HAVE_SYSV_COMPAT 1

The HAVE_SYSV_RC_LOCAL makes /etc/rc.local work as the rc-local.service
is still installed. And the HAVE_SYSV_COMPAT means /etc/rcX.d is still
supported.

With this fix, we have:

  build/config.h:#define HAVE_SYSV_RC_LOCAL 0
  build/config.h:#define HAVE_SYSV_COMPAT 0

Note that these three options need to be dropped when systemd is
upgraded to v260.

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

index bcb8fe3d9c6191899d95395bf0c63f10c08bf7c6..6bc71c923f8ebe4341df1184b2eaa6bb113914ba 100644 (file)
@@ -222,6 +222,9 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
                   -Ddbus=disabled \
                   -Dtests=false \
                   -Dlibc=${TCLIBC} \
+                  -Drc-local='' \
+                  -Dsysvinit-path='' \
+                  -Dsysvrcnd-path='' \
                   "
 
 # Hardcode target binary paths to avoid using paths from sysroot or worse