[systemd-devel] [PATCH] hostnamectl: correct IDs for remote hosts

Lennart Poettering lennart at poettering.net
Tue Jun 3 11:44:19 PDT 2014


On Mon, 02.06.14 13:31, Simon McVittie (simon.mcvittie at collabora.co.uk) wrote:

> On 01/06/14 20:03, Mantas Mikulėnas wrote:
> > Out of curiosity, wouldn't the existing
> > org.freedesktop.DBus.Peer.GetMachineId() work here?
> 
> In principle Peer.GetMachineId() returns the D-Bus machine ID
> /var/lib/dbus/machine-id, which in rare cases won't match the systemd
> machine ID /etc/machine-id, unfortunately. (Perhaps systemd's Peer
> implementation prefers the systemd machine ID anyway, though.)

yes, we prefer /etc/machine-id.

If the ids differ then that's a bug really, and we shouldn't try to work
around it...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list