New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: add initrd-network-ssh test #29528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. 🐝
nixos/tests/dropbear.nix
Outdated
''; | ||
|
||
in { | ||
name = "dropbear"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this is not testing the dropbear service but ssh support in the initrd. Why not name it initrd-ssh or initrd-network-ssh as initrd-network also exists?
nixos/tests/dropbear.nix
Outdated
"${readFile keys.dbPub}" | ||
]; | ||
}; | ||
networking.usePredictableInterfaceNames = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be needed on the client.
nixos/tests/dropbear.nix
Outdated
(head config.networking.interfaces.eth1.ip4).address | ||
}:::255.255.255.0::eth1:none" | ||
]; | ||
networking.usePredictableInterfaceNames = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you shutdown the server from the initrd on success, systemd will never be started which makes setting this option useless.
You also have to add the test do |
8a0acfb
to
fbf236c
Compare
starts two VMs: - one with dropbear listening from initrd, waiting for a file - another connecting via ssh, creating the file
fbf236c
to
f28c317
Compare
@fpletz I updated the PR :) |
starts two VMs:
waiting for a file
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)