Commit dc6e3d66 authored by Leigh Stoller's avatar Leigh Stoller

More image baking ingredients.

parent 550fe7da
......@@ -70,6 +70,7 @@ sub Install($$$)
}
close(CN);
};
Phase "targetconfig", "Reading in targetsys config variables", sub {
PhaseFail("No config file")
......@@ -181,6 +182,7 @@ sub Install($$$)
Phase "tracker", "Turning on image tracking", sub {
ExecQuietFatal("$PREFIX/sbin/setsitevar ".
"protogeni/use_imagetracker 1");
};
#
# Add the nodes to the DB.
......@@ -321,6 +323,14 @@ sub Install($$$)
DoneIfExists($REVERSEFRAGMENT);
CreateFileFatal($REVERSEFRAGMENT, @reverse_strings);
};
#
# The local fragment we just created above is not yet in the
# zone file, which means that when boss boots, there is no
# record for the local names. Just run named_setup ...
#
Phase "named_setup", "Running named_setup", sub {
ExecQuietFatal($NAMED_SETUP);
};
#
# Munge /etc/rc.conf for real boot.
......
......@@ -279,6 +279,10 @@ sub Install($$$)
if (-e "/usr/ports" && -d "/usr/ports");
ExecQuietFatal("cd /usr; ln -sf testbed/ports .");
};
Phase "tests", "Removing /usr/tests directory", sub {
ExecQuietFatal("/bin/rm -rf /usr/tests")
if (-e "/usr/tests" && -d "/usr/tests");
};
# Need to add a symlink.
......
......@@ -151,6 +151,11 @@ sub Install($$$)
}
};
Phase "tests", "Removing /usr/tests directory", sub {
ExecQuietFatal("/bin/rm -rf /usr/tests")
if (-e "/usr/tests" && -d "/usr/tests");
};
#
# Also grab the port source while close to the server.
#
......@@ -169,7 +174,7 @@ sub Install($$$)
ExecQuietFatal("cd /usr; ln -sf testbed/ports .");
};
}
#
# Add named forwarders to resolv.conf to avoid failures
# during boot.
......
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