Skip to content
Snippets Groups Projects
Commit 2073b123 authored by Lars Seipel's avatar Lars Seipel
Browse files

runner/libvirt: always inject SSH keys for root, too

parent 544e2a69
Branches
No related tags found
No related merge requests found
...@@ -694,6 +694,9 @@ func (r *Runner) customizeDomains(ctx context.Context, t *topology.T) (err error ...@@ -694,6 +694,9 @@ func (r *Runner) customizeDomains(ctx context.Context, t *topology.T) (err error
} }
for _, k := range r.authorizedKeys { for _, k := range r.authorizedKeys {
fmt.Fprintf(&buf, "ssh-inject %s:string:%s\n", user, k) fmt.Fprintf(&buf, "ssh-inject %s:string:%s\n", user, k)
if user != "root" {
fmt.Fprintf(&buf, "ssh-inject root:string:%s\n", k)
}
} }
if d.topoDev.Function() == topology.OOBServer { if d.topoDev.Function() == topology.OOBServer {
hosts := gatherHosts(ctx, r, t) hosts := gatherHosts(ctx, r, t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment