Comment 8 for bug 1418966

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 1418966] Re: setting the hostname is not persistent accross reboots

Steve Langasek [2015-02-27 19:52 -0000]:
> Where does systemd currently do the setting of the hostname?

It's not a unit, it's done right in the daemon before starting units.
It's more or less just sethostname(/etc/hostname).

> we have no way to insert a sequence point there?

James' unit is pretty much such a sequence point, i. e. the same way
we handle it in upstart (externally with an explicit job). So in
principle we get the same race condition as under upstart, but I
suppose it's not a practical problem if you do it early enough.