DevHeads.net

f27, hostname changes from former to current during boot

Nov 11 20:37:26 f26s.localdomain systemd[1]: Reached target Switch Root.
Nov 11 20:37:26 f26s.localdomain systemd[1]: Starting Switch Root...
Nov 11 20:37:26 f26s.localdomain systemd[1]: Switching root.
Nov 11 20:37:26 f26s.localdomain systemd-journald[200]: Journal stopped
Nov 11 20:37:32 f27s.localdomain systemd-journald[200]: Received
SIGTERM from PID 1 (systemd).
Nov 11 20:37:32 f27s.localdomain kernel: systemd: 17 output lines
suppressed due to ratelimiting

I'm not sure what component's bug this is. All I've done after dnf
system-upgrade from F26 to F27 is 'hostnamectl set-hostname
f27s.localdomain' but every reboot, it looks like initramfs stuff has
the old hostname and then after switchroot and journal stopping and
starting up again, it gets the new hostname. It's unexpected, I don't
remember this behavior with F25 to F26.

So... systemd or dracut?

If I do dracut -f, the problem is fixed. But storing the hostname in
the initramfs doesn't seem like a good idea just for this reason, get
a stale one polluting the log every boot and maybe there are other
effects.