if I call your debug commands, a hostname is set. On the next reboot, I get again only "localhost" (looks like systemd cache with "linux-when" expired).