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.
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. /etc/hostname) .
It's more or less just sethostname(
> 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.