[systemd-devel] [PACKAGERS] Packaging systemd >= 20

Lennart Poettering lennart at poettering.net
Fri Mar 4 14:41:31 PST 2011


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.


More information about the systemd-devel mailing list