Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
112
Issues
112
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
a651bd13
Commit
a651bd13
authored
Mar 06, 2012
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of the combo image and just use the single images in a multi
image load. Also download the MBRs.
parent
5d6278ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
7 deletions
+38
-7
install/phases/boss/images
install/phases/boss/images
+38
-7
No files found.
install/phases/boss/images
View file @
a651bd13
...
...
@@ -5,7 +5,11 @@ use strict;
use libinstall;
use installvars;
my $DESCRIPTORS = "$TOP_SRCDIR/install/descriptors-v2.xml";
my $UTAHURL = "http://www.emulab.net/downloads";
my $DESCRIPTORS = "$TOP_SRCDIR/install/descriptors-v3.xml";
my @STDIMAGES = ("FBSD73-STD", "FEDORA10-STD");
my @MBRS = ("emulab-mbr.dd", "emulab-mbr2.dd");
my $STDIMAGESURL = "$UTAHURL/images-STD";
sub Install($$$)
{
...
...
@@ -15,18 +19,45 @@ sub Install($$$)
return 0
if ($isupdate);
Phase "IDs", "Setting up Image
and OS id
s", sub {
Phase "IDs", "Setting up Image
s and OS
s", sub {
#
# Load the descriptors into the DB. Inside an elabinelab these are
# already loaded, but the script will just skip over them without
# raising an error.
# Load up the initial descriptors.
# Load up the images from boss.
#
Phase "descriptors", "Loading the Image and OS IDS", sub {
ExecQuietFatal("cd $TOP_OBJDIR/install; ".
" $SUDO -u $PROTOUSER $WAP ".
" perl load-descriptors $DESCRIPTORS");
" perl load-descriptors
-a
$DESCRIPTORS");
};
PhaseSucceed("done");
foreach my $imagename (@STDIMAGES) {
my $localfile = "$PREFIX/images/${imagename}.ndz";
my $url = "$STDIMAGESURL/${imagename}.ndz";
Phase "$imagename", "Fetching $imagename. Patience!", sub {
DoneIfExists($localfile);
FetchFileFatal($url, $localfile);
};
}
foreach my $mbr (@MBRS) {
my $localfile = "$PREFIX/images/$mbr";
my $url = "$UTAHURL/$mbr";
Phase "$mbr", "Fetching $mbr.", sub {
DoneIfExists($localfile);
FetchFileFatal($url, $localfile);
};
}
#
# The sitevar is how the reload daemon knows what to reload nodes
# with, by default. Now a comma separated list.
#
my $idlist = join(",", @STDIMAGES);
Phase "sitevar", "Setting sitevar $DEFAULTIMAGESITEVAR", sub {
ExecQuietFatal("$PREFIX/sbin/setsitevar ".
"'$DEFAULTIMAGESITEVAR' '$idlist'");
};
PhaseSucceed("done")
};
return 0;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment