On Wed, 29 Apr 2015 at 14:42:57 +0200, Stefan wrote:
> /etc/machine-id should probably be symlinked to /var/lib/dbus/machine-id

/etc/machine-id cannot be a symlink to /var/lib/dbus/machine-id, because
part of the point of /etc/machine-id is that software that runs during
early boot - like systemd - can use it. /var is not necessarily on the
root filesystem.

On systems where /etc/machine-id exists, it would be OK for
/var/lib/dbus/machine-id to be a symlink to /etc/machine-id; but
because /etc/machine-id is currently only created by systemd, a
non-Essential package, neither dbus nor base-files can rely on it existing.
So a symlink in either direction is not OK unless either
systemd becomes Essential, or some Essential package takes
responsibility for populating /etc/machine-id (#745876 suggested
that base-files could be that Essential package).

dbus and systemd in jessie do cooperate to arrange for the two IDs to
be equal if possible: whichever one was installed first creates its own ID,
and whichever one was installed second copies the ID from the other
instead of generating a new one. This should apply to all new installations
of jessie. Upgrades from older versions of Debian might end up with the IDs
unequal, depending on upgrade sequence; the only bad situation that I'm
aware of is installing systemd without dbus, then installing *wheezy's*
dbus before upgrading to jessie.

    S


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to