• Mike Hibler's avatar
    Remove dependency on a racy state transition. · 089676f5
    Mike Hibler authored
    The recent reboot-node-if-going-from-PXEWAIT-to-SECURELOAD change to
    bootinfo was checking that the node was in PXEKERNEL/PXEBOOTING. However,
    the transition from PXEWAKEUP->PXEBOOTING may not have happened yet.
    
    However, the check for PXEBOOTING was unnecessary anyway, since bootinfo
    is the one that sends that state and it *always* does it just before calling
    query_bootinfo_db (the guy relying on the racy state change). Thus, the node
    is intended to be in PXEBOOTING even if that hasn't yet been recorded in
    the DB. So just remove the state check (we still check the op_mode).
    
    Note that this only affects nodes that are using the secure diskload MFS.
    089676f5
Name
Last commit
Last update
..
freebsd Loading commit data...
GNUmakefile.in Loading commit data...
README Loading commit data...
bootinfo.c Loading commit data...
bootinfo.conf Loading commit data...
bootinfo.h Loading commit data...
bootinfo.restart.in Loading commit data...
bootinfo_cfile.c Loading commit data...
bootinfo_mysql.c Loading commit data...
bootinfo_null.c Loading commit data...
bootinfoclient.c Loading commit data...
bootinfosend.c Loading commit data...
bootwhat.h Loading commit data...
event-support.c Loading commit data...
main.c Loading commit data...