Commit 39f0d0b4 authored by Mac Newbold's avatar Mac Newbold

Make sure to reset the PXE path if they choose a normal (non-pxebooting) OS.

parent 661fc57a
......@@ -143,8 +143,10 @@ foreach $n (@nodes) {
my $curmode = node_opmode($n);
if (!$curmode) { next; }
debug("Current opmode for node '$n' is '$curmode'.\n");
if ($mfs) { set_pxe_path($n); }
else { set_boot_osid($n); }
# Always set the pxe_boot_path (to the osid in mfs mode, else PXEBOOT)
set_pxe_path($n);
# Only do the boot osid if we're not in mfs mode
if (!$mfs) { set_boot_osid($n); }
my $boot = TBBootWhat($n);
if (!$boot) { fatal("***Bootwhat query failed. Contact testbed-ops.\n"); }
debug("Bootwhat says: $n => $boot\n");
......
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