machine-id: fall back to reading /etc/machine-id if D-Bus machine ID is not available
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Mar 2011 01:58:39 +0000 (02:58 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 27 Apr 2011 16:54:38 +0000 (17:54 +0100)
commit66e52541d5bdd4927a5c702963749760643313f4
treeea62aa14a9fd3dc93d04064fe9098a02fd44f705
parent9c690c8b4f85efc44b3c31fd5007e308992e393b
machine-id: fall back to reading /etc/machine-id if D-Bus machine ID is not available

Newer systemd-based systems support a global machine ID with the same
metrics as the D-Bus machine ID, but more powerful semantics (for
example on ro media) in /etc/machine-id.

If the D-Bus machine ID cannot be read, fall back to the systemd machine
ID.

This is a first step towards allowing D-Bus to be started up during
early boot where /var is not available.

[plus a whitespace fix -smcv]

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35228
dbus/dbus-sysdeps-unix.c