From 3b42616f4b389f54960825f5bc912c10cd848052 Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 5 May 2025 17:12:57 +0200 Subject: [PATCH] nixos/initrd-ssh: include sshd-auth binary in initrd --- nixos/modules/system/boot/initrd-ssh.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index 474f89e1ccf3..76d036766101 100644 --- a/nixos/modules/system/boot/initrd-ssh.nix +++ b/nixos/modules/system/boot/initrd-ssh.nix @@ -210,6 +210,7 @@ in } ${optionalString (!config.boot.initrd.systemd.enable) '' + SshdAuthPath /bin/sshd-auth SshdSessionPath /bin/sshd-session ''} @@ -239,6 +240,7 @@ in boot.initrd.extraUtilsCommands = mkIf (!config.boot.initrd.systemd.enable) '' copy_bin_and_libs ${package}/bin/sshd + copy_bin_and_libs ${package}/libexec/sshd-auth copy_bin_and_libs ${package}/libexec/sshd-session cp -pv ${pkgs.glibc.out}/lib/libnss_files.so.* $out/lib ''; @@ -328,6 +330,7 @@ in }; storePaths = [ "${package}/bin/sshd" + "${package}/libexec/sshd-auth" "${package}/libexec/sshd-session" ];