Files
nixpkgs/nixos/modules/system/boot/systemd
Eduard Bachmakov 7cc66df3ec nixos/systemd/initrd: Set /etc/hostname in the initrd.
With the the Systemd-based initrd, systemd-journald is doing the logging.
One of Journald's Trusted Journal Fields is `_HOSTNAME` (systemd.journal-fields(7)).
Without explicitly setting the hostname via this file or the kernel cmdline, `localhost` is used and captured in the journal.
As a result, a boot's log references multiple hostnames.
With centralized log collection this breaks filtering (more so when logs from multiple Systemd-based initrds are streaming in simultaneously.

Fixes #318907.
2024-08-10 11:16:25 +02:00
..
2024-06-06 18:33:30 +02:00
2024-04-13 10:07:35 -07:00
2024-07-21 06:31:37 -04:00
2024-04-13 10:07:35 -07:00
2024-06-23 11:48:58 +02:00
2024-04-13 10:07:35 -07:00
2024-04-13 10:07:35 -07:00