mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
Fix SSH in scripted initrd
Co-authored-by: Emily <vcs@emily.moe>
This commit is contained in:
parent
79d8116671
commit
d1e0f30cb2
@ -166,6 +166,10 @@ in
|
||||
UseDNS no
|
||||
''}
|
||||
|
||||
${optionalString (!config.boot.initrd.systemd.enable) ''
|
||||
SshdSessionPath /bin/sshd-session
|
||||
''}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
in mkIf enabled {
|
||||
@ -191,6 +195,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-session
|
||||
cp -pv ${pkgs.glibc.out}/lib/libnss_files.so.* $out/lib
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user