[Buildroot] [PATCH 2/3] package/systemd: do not force dbus if dbus-broker is available

Norbert Lange nolange79 at gmail.com
Sun Jun 7 18:18:38 UTC 2020


Am So., 7. Juni 2020 um 19:44 Uhr schrieb Yann E. MORIN
<yann.morin.1998 at free.fr>:
>
> dbus-broker fits the bill as a message bus daemon, so only enable the
> original dbus if dbus-broker is not enabled.

Well, the core components of systemd run fine without dbus(-broker). I
have such a setup with systemd + journald + networkd (and most of util
linux removed) running since months.
Rule of the thumb is that you dont need dbus(-broker) unless you need
to interact with non-root (ie. logind) or non-local stuff
(containerd).

Changes are at (not rebased, kept that one for last)
https://github.com/nolange/buildroot/commits/improve_systemd_nodbus

This to me would be the minimal "buildroot approach" (at the cost of
messing up if eg. busybox doesn't provide a few tools), but I
obviously can't speak for the maintainers.

>
> Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
> Cc: Norbert Lange <nolange79 at gmail.com>
> ---
>  package/systemd/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> index dd3b8c534d..37f9d04850 100644
> --- a/package/systemd/Config.in
> +++ b/package/systemd/Config.in
> @@ -25,7 +25,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
>         depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>         depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
>         select BR2_PACKAGE_HAS_UDEV
> -       select BR2_PACKAGE_DBUS # runtime dependency only
> +       select BR2_PACKAGE_DBUS if !BR2_PACKAGE_DBUS_BROKER # runtime
>         select BR2_PACKAGE_LIBCAP
>         select BR2_PACKAGE_UTIL_LINUX
>         select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
> --
> 2.20.1
>

Norbert


More information about the buildroot mailing list