Skip to content

Commit

Permalink
fix(dbus-broker): enable the service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bengal authored and haraldh committed Mar 30, 2021
1 parent dd3cac2 commit df1e5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules.d/06dbus-broker/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit df1e5f0

Please sign in to comment.