Merge pull request #102530 from Ma27/fix-initrd-network-ssh-test

nixos/initrd-network-ssh: fix test
This commit is contained in:
Maximilian Bosch 2020-11-04 00:01:10 +01:00 committed by GitHub
commit d6b804db2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,10 @@ import ../make-test-python.nix ({ lib, ... }:
hostKeys = [ ./ssh_host_ed25519_key ];
};
};
boot.initrd.extraUtilsCommands = ''
mkdir -p $out/secrets/etc/ssh
cat "${./ssh_host_ed25519_key}" > $out/secrets/etc/ssh/sh_host_ed25519_key
'';
boot.initrd.preLVMCommands = ''
while true; do
if [ -f fnord ]; then