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

If a deleted image, and no type list, try to derive one by looking for an

existing image in emulab-ops. This is a last resort, as we do store a copy
of the typelist in the descriptor for just this purpose, but stuff happens.
parent 4953c484
......@@ -453,6 +453,12 @@ if (($isvirtnode || $base_osinfo) && $base_osinfo->def_parentosid()) {
if (defined($base_image)) {
my @typelist = $base_image->TypeList($base_osinfo);
if (! @typelist && defined($base_image->deleted())) {
my $sysimage = Image->LookupByName($base_image->imagename());
if (defined($sysimage)) {
@typelist = $sysimage->TypeList();
if (! @typelist) {
fatal("$base_image does not run on any types");
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