diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-11-04 00:01:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 00:01:10 +0100 |
commit | d6b804db2f590f6c7c7c5cc1affc583a3307d5e5 (patch) | |
tree | 3b67d4915ee52610e984dd1a49959608be60f381 /nixos | |
parent | 4ee1f7bc2c48d18fb6da94d2059611dbad0d0dc4 (diff) | |
parent | 819b0f4bb864b21327672a5b9f2d94a75c312078 (diff) |
Merge pull request #102530 from Ma27/fix-initrd-network-ssh-test
nixos/initrd-network-ssh: fix test
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/initrd-network-ssh/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/initrd-network-ssh/default.nix b/nixos/tests/initrd-network-ssh/default.nix index 017de6882081d..0ad0563b0ce15 100644 --- a/nixos/tests/initrd-network-ssh/default.nix +++ b/nixos/tests/initrd-network-ssh/default.nix @@ -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 |