Commit b761e4f6 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix bug reported by Michael.Elkins@sparta.com; Create root's authkeys

file if it does not exists, and then append to it. In our elabinelab
setup, there is always an existing root authkeys file, so we missed
this error.
parent b0db7bbb
......@@ -564,6 +564,9 @@ Phase "ssh", "Allowing root ssh", sub {
PhaseFail("Could not read $IDENTPUB")
if ($?);
chomp($ident);
if (! -e $AUTHKEYS) {
CreateFileFatal($AUTHKEYS);
}
AppendToFileFatal($AUTHKEYS,
"from=\"${BOSSNODE}\" $ident");
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment