I swapped-in a new motherboard, cpu, and renamed a machine. The old machine name was bulldozer, and the new mchine name is skylake. I used hostnamectrl --static according to How to permanently change hostname in Fedora 21 since the machine is Fedora 25.
When the machine boots, systemd is still using the old name:
skylake:~$ sudo dmesg | grep bulldozer
[ 1.085387] systemd[1]: Set hostname to <bulldozer>.
skylake:~$ hostname
skylake
According to the honamectrl man page, it sounds like --static is supposed to do it: "... the static hostname which is used to initialize the kernel hostname at boot ...".
Grepping /etc does not reveal any hits for the old name:
skylake:~$ sudo grep -R bulldozer /etc/ 2>/dev/null
skylake:~$
I also tried /sbin/sysctl -q -w kernel.hostname=skylake according to Correctly setting the hostname - Fedora 20 on Amazon EC2. But it did not work, either.
How do I change the host name for systemd?