Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2020-11-29 13:51:10 +01:00
214 changed files with 2326 additions and 1369 deletions
+6 -1
View File
@@ -159,9 +159,14 @@ in
boot.initrd.extraUtilsCommandsTest = ''
# sshd requires a host key to check config, so we pass in the test's
tmpkey="$(mktemp initrd-ssh-testkey.XXXXXXXXXX)"
cp "${../../../tests/initrd-network-ssh/ssh_host_ed25519_key}" "$tmpkey"
# keys from Nix store are world-readable, which sshd doesn't like
chmod 600 "$tmpkey"
echo -n ${escapeShellArg sshdConfig} |
$out/bin/sshd -t -f /dev/stdin \
-h ${../../../tests/initrd-network-ssh/ssh_host_ed25519_key}
-h "$tmpkey"
rm "$tmpkey"
'';
boot.initrd.network.postCommands = ''