<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jul 29, 2017 at 9:00 AM, Andrey Yurovsky <span dir="ltr"><<a href="mailto:yurovsky@gmail.com" target="_blank">yurovsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">However I see the DHCP client use the original hostname the first time<br>
my target boots (I captured traffic and checked the DHCP Discover<br>
contents). When I reboot the newly-booted system, /etc/hostname is<br>
already updated so everything looks right on the wire. It feels like<br>
systemd-networkd is using the hostname that was read at systemd init<br>
(in main.c) rather than checking what it's set to, but that's just<br>
speculation (I need to dig in further).</blockquote><div><br></div><div>In that case, could you try setting it via `hostnamectl` instead?</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>