aboutsummaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 16:52:15 +0000
committertv <tv@krebsco.de>2026-11-20 16:52:15 +0000
commit51c2e65e867c1c44418fead32e331c875f7c17fb (patch)
tree8b2fc3a56a58761208aecf56977d1f31fe17d9df /base
parenta556852dd550fc0676708b89f9f0fcd6ff015250 (diff)
run-firecracker-vm: start fc-ssh-host-key at boot, before sshd
fc-ssh-host-key only ran on the first connection, as a requirement of the socket-activated sshd@ instance, and without startWhenNeeded not at all, so NixOS generated a random host key instead. Now it's required by, and runs before, whichever of sshd.socket or sshd.service is in use, startWhenNeeded is only a default (a layer can turn it off), and NixOS doesn't generate host keys. The run script now also deals with the key first thing, before starting any servers: it may be a pipe (<(...)), so it's read once, for the copy; a missing final newline gets added (sshd refuses the key without); and ssh-keygen -y checks it's a key without passphrase, so a bad one stops the run script right away rather than every connection.
Diffstat (limited to 'base')
0 files changed, 0 insertions, 0 deletions