mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-12 08:12:33 +00:00
8cf2640ee7
makedhcp builds a new configuration when dhcpd.conf is missing or xCAT did not write it. It replaced each host over OMAPI before dhcpd loaded that configuration. A dhcpd that still ran an older one then rejected a host that tests an iPXE feature option. OMAPI had already removed the old host, so the node lost its reservation. makedhcp now writes the new configuration and restarts dhcpd first. It changes no host when that restart fails. The restart marker of an upgraded configuration now also covers a new one, so the next run restarts dhcpd first after a run that stopped before the restart.