meta/recipes-core/systemd/systemd-systemctl/systemctl seems to care
only about "system" units, so create an Alias link for "user" unit
manually to avoid errors which are indicated by following entries
in the systemd journal:

  systemd[381]: dbus.socket: Socket service dbus.service not loaded, refusing.
  systemd[381]: Failed to listen on D-Bus User Message Bus Socket.

which take place for example when DISTRO_FEATURES contains 'pam'.

Signed-off-by: Niko Mauno <[email protected]>
---
 meta-oe/recipes-core/dbus/dbus-broker_36.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-core/dbus/dbus-broker_36.bb 
b/meta-oe/recipes-core/dbus/dbus-broker_36.bb
index f0f427ba0f..5b4915f968 100644
--- a/meta-oe/recipes-core/dbus/dbus-broker_36.bb
+++ b/meta-oe/recipes-core/dbus/dbus-broker_36.bb
@@ -25,6 +25,11 @@ EXTRA_OEMESON += 
"-Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '
 
 REQUIRED_DISTRO_FEATURES = "systemd"
 
+do_install:append() {
+    install -d ${D}${sysconfdir}/systemd/user
+    ln -s ${systemd_user_unitdir}/dbus-broker.service 
${D}${sysconfdir}/systemd/user/dbus.service
+}
+
 RDEPENDS:${PN} += "dbus-common"
 
 FILES:${PN} += "${nonarch_libdir}/systemd/catalog"
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113079): 
https://lists.openembedded.org/g/openembedded-devel/message/113079
Mute This Topic: https://lists.openembedded.org/mt/109134445/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to