Commit 69f1d943 authored by Leigh Stoller's avatar Leigh Stoller

If none of def_boot_osid,temp_boot_osid,next_boot_osid is set, return

PXEWAIT to node (if version >= 1, older pxeboot gets an error code).
Free nodes still get PXEWAIT; have not done those changes yet.
parent 5f2c668d
......@@ -213,6 +213,16 @@ query_bootinfo_db(struct in_addr ipaddr, int version, boot_what_t *info)
}
goto done;
}
/*
* If we get here, there is no bootinfo to give the client.
* New PXE boot clients get PXEWAIT, but older ones get an error.
*/
error("No OSIDs set for host %s\n", ipstr);
if (version >= 1) {
info->type = BIBOOTWHAT_TYPE_WAIT;
goto done;
}
rval = 1;
done:
mysql_free_result(res);
return rval;
......
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