diff options
| author | Niko Mauno <niko.mauno@vaisala.com> | 2024-10-21 15:16:22 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-10-21 20:54:48 -0700 |
| commit | 1f72f490277ce09742a51f022d0655ee1bfb1641 (patch) | |
| tree | 6a17d0a208e024191e12857804507a01cde991d9 /meta-oe | |
| parent | 60f7f944090137274563c72396940ecdb8876229 (diff) | |
| download | meta-openembedded-1f72f490277ce09742a51f022d0655ee1bfb1641.tar.gz | |
dbus-broker: Add missing systemd user symlink
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 <niko.mauno@vaisala.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-core/dbus/dbus-broker_36.bb | 5 |
1 files changed, 5 insertions, 0 deletions
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', ' | |||
| 25 | 25 | ||
| 26 | REQUIRED_DISTRO_FEATURES = "systemd" | 26 | REQUIRED_DISTRO_FEATURES = "systemd" |
| 27 | 27 | ||
| 28 | do_install:append() { | ||
| 29 | install -d ${D}${sysconfdir}/systemd/user | ||
| 30 | ln -s ${systemd_user_unitdir}/dbus-broker.service ${D}${sysconfdir}/systemd/user/dbus.service | ||
| 31 | } | ||
| 32 | |||
| 28 | RDEPENDS:${PN} += "dbus-common" | 33 | RDEPENDS:${PN} += "dbus-common" |
| 29 | 34 | ||
| 30 | FILES:${PN} += "${nonarch_libdir}/systemd/catalog" | 35 | FILES:${PN} += "${nonarch_libdir}/systemd/catalog" |
