mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 08:28:02 +02:00
The `Containers1` interface is not stable or production-ready, and is compile-time-optional behind a build option, which in fact currently cannot be enabled (it intentionally provokes a compiler `#error` if enabled). If it isn't enabled, this directory won't be useful, so there's no reason to create it. As discussed in <https://github.com/systemd/mkosi/issues/3189>, if we use the `@DBUS_USER@` here, it makes `tmpfiles.d/dbus.conf` dependent on having created the `@DBUS_USER@` via `sysusers.d` or some appropriate distro-specific mechanism. This is problematic in distros that split up the functionality of dbus into several layers, such as Debian: the `@DBUS_USER@` conceptually belongs to the same layer as the well-known system bus, but `/etc/machine-id` and `/var/lib/dbus/machine-id` are also used by the well-known session bus, which is orthogonal to the system bus; so we want `dbus.conf` to be in a lower layer than the `@DBUS_USER@`. Signed-off-by: Simon McVittie <smcv@collabora.com>
9 lines
405 B
Text
9 lines
405 B
Text
# Fields: type; path; mode; uid; gid; age; argument (symlink target)
|
|
|
|
# Make ${localstatedir}/lib/dbus (required for systemd < 237)
|
|
# Adjust mode and ownership if it already exists.
|
|
d @EXPANDED_LOCALSTATEDIR@/lib/dbus 0755 - - -
|
|
|
|
# Make ${localstatedir}/lib/dbus/machine-id a symlink to /etc/machine-id
|
|
# if it does not already exist
|
|
L @EXPANDED_LOCALSTATEDIR@/lib/dbus/machine-id - - - - /etc/machine-id
|