From: Beniamino Galvani Date: Mon, 29 Mar 2021 16:27:38 +0000 (+0200) Subject: fix(dbus-broker): enable the service X-Git-Tag: 054~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1e5f06a5449dcec6749baf742eac6eb1f0aa53;p=thirdparty%2Fdracut.git fix(dbus-broker): enable the service dbus-broker.service has a 'dbus.service' alias which is installed when the service gets enabled. If the alias is not present in the initrd image, services requiring D-Bus in the initrd fail to start because they depend on dbus.service, which doesn't exist. Therefore, enable the service to create the alias. --- diff --git a/modules.d/06dbus-broker/module-setup.sh b/modules.d/06dbus-broker/module-setup.sh index b536c1d77..3c1b94457 100755 --- a/modules.d/06dbus-broker/module-setup.sh +++ b/modules.d/06dbus-broker/module-setup.sh @@ -66,6 +66,8 @@ install() { /^\[Socket\]/aRemoveOnStop=yes' \ "$initdir$systemdsystemunitdir/dbus.socket" + $SYSTEMCTL -q --root "$initdir" enable dbus-broker.service + # Install the hosts local user configurations if enabled. if [[ $hostonly ]]; then inst_multiple -H -o \