From 7ed0461810602bfbd4d5492fc9ed82f15e57fa9f Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 22 Dec 2022 12:34:30 +0100 Subject: [PATCH] fix(dbus-broker): add missing sockets.target.wants/dbus.socket If dbus.socket is not started automatically in the initrd, all binaries that require dbus to work fail. --- modules.d/06dbus-broker/module-setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules.d/06dbus-broker/module-setup.sh b/modules.d/06dbus-broker/module-setup.sh index 5e3c469c2..a38fce8d5 100755 --- a/modules.d/06dbus-broker/module-setup.sh +++ b/modules.d/06dbus-broker/module-setup.sh @@ -54,6 +54,8 @@ install() { "$systemduser"/dbus-broker.service \ "$systemdsystemunitdir"/dbus.socket \ "$systemduser"/dbus.socket \ + "$systemdsystemunitdir"/sockets.target.wants/dbus.socket \ + "$systemduser"/sockets.target.wants/dbus.socket \ "$systemdsystemunitdir"/dbus.target.wants \ busctl dbus-broker dbus-broker-launch @@ -77,7 +79,8 @@ install() { "$systemdsystemconfdir"/dbus.socket \ "$systemdsystemconfdir"/dbus.socket.d/*.conf \ "$systemdsystemconfdir"/dbus-broker.service \ - "$systemdsystemconfdir"/dbus-broker.service.d/*.conf + "$systemdsystemconfdir"/dbus-broker.service.d/*.conf \ + "$systemdsystemconfdir"/sockets.target.wants/dbus.socket fi # We need to make sure that systemd-tmpfiles-setup.service->dbus.socket -- 2.47.3