Commit 9dbb7f0a authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Run the main ssh as root. Also a fix to how we get the

parent image when provenance is on.
parent cee54de1
......@@ -490,7 +490,8 @@ else {
#
if ($doprovenance) {
$srcimage = $image->Parent();
} else {
}
if (!defined($srcimage)) {
(undef, $srcimage) = $node->RunningOsImage();
}
if (defined($srcimage)) {
......@@ -1057,7 +1058,10 @@ if ($usessh) {
# Note: we do not pass the filename, that is part of the key/value
# string we built up.
#
my $SAVEUID = $UID;
$EUID = $UID = 0;
$result = run_with_ssh($command, undef);
$EUID = $UID = $SAVEUID;
if ($result eq "setupfailed") {
goto done;
}
......
Supports Markdown
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