[systemd-devel] systemd/hostnamed: setting the hostname and using it in the DHCP Discover
Mantas Mikulėnas
grawity at gmail.com
Sat Jul 29 08:26:58 UTC 2017
On Sat, Jul 29, 2017 at 9:00 AM, Andrey Yurovsky <yurovsky at gmail.com> wrote:
> However I see the DHCP client use the original hostname the first time
> my target boots (I captured traffic and checked the DHCP Discover
> contents). When I reboot the newly-booted system, /etc/hostname is
> already updated so everything looks right on the wire. It feels like
> systemd-networkd is using the hostname that was read at systemd init
> (in main.c) rather than checking what it's set to, but that's just
> speculation (I need to dig in further).
In that case, could you try setting it via `hostnamectl` instead?
--
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170729/bcff1901/attachment-0001.html>
More information about the systemd-devel
mailing list