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.
master
Beniamino Galvani 2021-03-29 18:27:38 +02:00 committed by Harald Hoyer
parent dd3cac269b
commit df1e5f06a5
1 changed files with 2 additions and 0 deletions

View File

@ -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 \