Install a systemd tmpfiles.d snippet to create /var/lib/dbus/machine-id
authorSimon McVittie <smcv@collabora.com>
Tue, 20 Jun 2017 14:03:37 +0000 (15:03 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 28 Jun 2017 18:09:53 +0000 (19:09 +0100)
commitae7568facee0b0d93d7bd1433a0d8840e98f6fb6
tree4e560b6c4aece148a74f4fdccbd2d2ba3b513a1c
parent3974aa50629c59ad6c816fa16b34afc2c67c8342
Install a systemd tmpfiles.d snippet to create /var/lib/dbus/machine-id

On systemd systems, /etc/machine-id is guaranteed to exist and has
the same format as the D-Bus machine ID. The major D-Bus implementations
read /etc/machine-id if it exists, but some less up-to-date
implementations still only read /var/lib/dbus/machine-id. We can be
nice to those implementations by ensuring /var/lib/dbus/machine-id
is a symlink; this way, the two files can never get out of sync.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101570
.gitignore
bus/Makefile.am
bus/tmpfiles.d/dbus.conf.in [new file with mode: 0644]
configure.ac