Add fleet hostnaming

This commit is contained in:
Audiobuzz
2026-06-19 09:59:49 +00:00
parent 13ac648267
commit 98c71474d3
7 changed files with 116 additions and 0 deletions
@@ -0,0 +1,13 @@
# 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