tests/initrd-network-ssh: Don't build during evaluation

Issue #29774
This commit is contained in:
Tuomas Tynkkynen
2017-11-27 12:08:57 +02:00
parent cb008da167
commit dc5cd7800a
7 changed files with 72 additions and 20 deletions
@@ -0,0 +1,12 @@
with import ../../.. {};
runCommand "gen-keys" {
buildInputs = [ dropbear openssh ];
}
''
mkdir $out
dropbearkey -t rsa -f $out/dropbear.priv -s 4096 | sed -n 2p > $out/dropbear.pub
ssh-keygen -q -t rsa -b 4096 -N "" -f client
mv client $out/openssh.priv
mv client.pub $out/openssh.pub
''