nixpkgs/nixos/modules/system
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
..
activation Merge pull request #323613 from CyberShadow/fix-nix-path-without-channels-v2 2024-07-28 13:31:10 +02:00
boot nixos/systemd/initrd: Set /etc/hostname in the initrd. 2024-08-10 11:16:25 +02:00
etc nixos/etc: handle mountpoints on top of /etc when switching 2024-07-18 21:28:53 +02:00
build.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00