Heya,

Here's a little headsup to all packagers, regarding packaging of systemd
v20 (which isn't released yet):

With v20 we introduced /etc/machine-id, which needs special attention
when packaging.

First, here's a bit of background regarding this new feature:

http://lists.freedesktop.org/archives/dbus/2011-March/014187.html

All that you need to add to the installation or upgrade scriptlets of
your systemd package is invoke /bin/systemd-machine-id-setup. That will
generate the file as necessary. And you probably should include an
*empty* /etc/machine-id file in your package so that if needed systemd
can bind mount the id into that.

And then, optionally, symlink /var/lib/dbus/machine-id →
/etc/machine-id. But you probably want to do that in the dbus package,
not systemd. But this is optional, but recommended to make clear that
this is actually the same thing when the user browses through his
directories.

Have fun,

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to