mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
The symlink to /var/lib/nixos/machine-id never persists the ID, systemd-machine-id-commit.service requires a writable /etc, and machine_id_commit() does not follow symlinks for its mountpoint check. So the backing file stays "uninitialized", every boot is ConditionFirstBoot=yes, and the machine-id is random per boot. Ship an empty regular file instead, systemd then overlays /run/machine-id for the session, ConditionFirstBoot is correctly "no", commit is cleanly condition-skipped, and the file is a usable bind target for users that want persistence. Fixes #523878 |
||
|---|---|---|
| .. | ||
| bashless-closure.nix | ||
| bashless-image.nix | ||
| bashless.nix | ||
| etc-overlay-immutable.nix | ||
| etc-overlay-mutable.nix | ||
| nix-channel.nix | ||
| nixos-init.nix | ||
| perlless.nix | ||
| template-dropin.nix | ||
| var.nix | ||