vsock ssh: set up UNKNOWN /etc/hosts in initrd too

This commit is contained in:
Else, Someone 2025-10-09 04:12:06 +03:00
parent 33d33e745b
commit 0bebc13927

View file

@ -22,6 +22,9 @@ in
# https://mastodon.acm.org/@nobody/115108458851355328 # https://mastodon.acm.org/@nobody/115108458851355328
# https://github.com/linux-pam/linux-pam/issues/885#issuecomment-3030698895 # https://github.com/linux-pam/linux-pam/issues/885#issuecomment-3030698895
networking.hosts."100::" = [ "UNKNOWN" ]; networking.hosts."100::" = [ "UNKNOWN" ];
boot.initrd.extraFiles = lib.optionalAttrs config.boot.initrd.network.ssh.enable {
"/etc/hosts" = { inherit (config.environment.etc.hosts) source; };
};
} }
]; ];
} }