13

How does DBus calculate the machine ID? (/etc/machine-id, /var/lib/dbus/machine-id). Which way is more correct to determine it?

1 Answer 1

10

The machine ID in /etc/machine-id is usually randomly generated at system install by systemd-machine-id-setup. On stateless systems it can also be generated at system boot. The format of the file originates from /var/lib/dbus/machine-id introduced by D-Bus.

The /var/lib/dbus/machine-id file is randomly generated by dbus-uuidgen, typically invoked by the post-install script of a D-Bus package. It can also be a symlink to /etc/machine-id.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .