Commit 1713d7b4 authored by Leigh Stoller's avatar Leigh Stoller

Turn on NewOsload and GeniOsSetup features on Powder FEs.

parent ca924150
......@@ -8,6 +8,7 @@ use libinstall;
use installvars;
use libtestbed;
use EmulabConstants;
use EmulabFeatures;
use emutil;
use libEmulab;
use emdb;
......@@ -144,6 +145,33 @@ sub Install($$$)
"images/frisbee/maxrate_usr 200000000");
};
#
# Enable these features.
#
my %features = (
"GeniOsSetup" => "Use libossetup for StartSliver",
"NewOsload" => "New version of osload library",
);
foreach my $name (keys(%features)) {
my $description = $features{$name};
my $feature = EmulabFeatures->Lookup($name);
Phase "feature", "Adding $name feature", sub {
PhaseSkip("already exists")
if (defined($feature));
$feature = EmulabFeatures->Create($name, $description);
PhaseFail("Failed to create feature")
if (!defined($feature));
};
Phase "feature", "Enabling $name feature", sub {
$feature->SetGlobalEnable(1) == 0
or PhaseFail("Could not enable feature");
$feature->SetGlobalDisable(0) == 0
or PhaseFail("Could not clear disable flag on feature");
};
}
#
# Extra install
#
......
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