initrd ssh: back to std key paths

This commit is contained in:
Mikaël Cluseau
2025-06-30 11:00:09 +02:00
parent c8759e03d5
commit 73c533116c

View File

@ -71,7 +71,8 @@ func buildInitrd(out io.Writer, ctx *renderContext) (err error) {
// ssh keys
// XXX do we want a bootstrap-stage key instead of the real host key?
for _, format := range []string{"rsa", "dsa", "ecdsa", "ed25519"} {
cat.AppendBytes(cfg.FileContent("/etc/ssh/ssh_host_"+format+"_key"), "id_"+format, 0600)
keyPath := "/etc/ssh/ssh_host_" + format + "_key"
cat.AppendBytes(cfg.FileContent(keyPath), keyPath, 0600)
}
// ssh user CA