]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dbus-broker): enable the service
authorBeniamino Galvani <bgalvani@redhat.com>
Mon, 29 Mar 2021 16:27:38 +0000 (18:27 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 30 Mar 2021 12:45:47 +0000 (14:45 +0200)
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.

modules.d/06dbus-broker/module-setup.sh

index b536c1d77691ef887ae2a2a0b4798eb072b9109d..3c1b944576251dae0bc63b4de336824ca52ee902 100755 (executable)
@@ -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 \