And thanks on kernel cmdline not providing hostname. Agreed. The source of the ubuntu hostname just came from the original image containing /etc/hostname with "ubuntu" in it. Systemd helpfully setting hostname early in boot for us before cloud-init even gets involved, which we can see in journalctl -b 0 as
systemd[1] Hostname set to <ubuntu>" prior to any cloud-init involvement.
And thanks on kernel cmdline not providing hostname. Agreed. The source of the ubuntu hostname just came from the original image containing /etc/hostname with "ubuntu" in it. Systemd helpfully setting hostname early in boot for us before cloud-init even gets involved, which we can see in journalctl -b 0 as
systemd[1] Hostname set to <ubuntu>" prior to any cloud-init involvement.