# Derive the system hostname from the network at boot. # # The image carries NO per-host hostname (invariant: no per-host state in the # artifact) — /etc/hostname is emptied at build, so the static hostname is unset # and the host comes up as "localhost". With hostname-mode=default, NetworkManager # sets the *transient* hostname once it has a DHCP lease, in this order: # 1. DHCP option 12 (host-name) if the server sends one — the lab dnsmasq's # fleet-namer assigns a creative starship name per MAC, server-side. # 2. otherwise a reverse-DNS (PTR) lookup of the leased address. # This is already NM's default, but we set it explicitly so a stricter # global/STIG config can't silently switch it to "none" and leave hosts unnamed. [main] hostname-mode=default