On Sat, Jul 29, 2017, 08:13 Andrei Borzenkov <arvidj...@gmail.com> wrote:

> 28.07.2017 22:08, Andrey Yurovsky пишет:
> >
> > Is there a correct way to replace or otherwise set the hostname and
> > have systemd use it from the beginning and ensure that the DHCP client
> > specifies it in option 12?
> >
>
> Use generator to create /etc/hostname before systemd starts.
>

But afaik, generators only run before units are processed, but still after
applying the general config?

That said... Might the problem be that you only update the config in /etc
but don't apply it to the kernel via `hostname`? DHCP clients don't really
care about /etc/hostname.

> --

Mantas Mikulėnas <graw...@gmail.com>
Sent from my phone
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to