mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #102530 from Ma27/fix-initrd-network-ssh-test
nixos/initrd-network-ssh: fix test
This commit is contained in:
commit
d6b804db2f
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ import ../make-test-python.nix ({ lib, ... }:
|
||||||
hostKeys = [ ./ssh_host_ed25519_key ];
|
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 = ''
|
boot.initrd.preLVMCommands = ''
|
||||||
while true; do
|
while true; do
|
||||||
if [ -f fnord ]; then
|
if [ -f fnord ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue