mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-25 20:02:19 +00:00
872bfdcefa
dhcp6_bootfile_url_for_node in dhcp.pm returned nothing when the UEFI loader was not under the tftpdir of the node, and reported nothing. The reservation was still written with its address and its DUID, makedhcp exited 0, and the node reached a firmware timeout with no line anywhere naming the file it had asked for. On an IPv6 cell that is the whole boot: there is no second method to fall back to. BootPolicy gains dhcp6_missing_loader_warning, which takes the tftpdir of the node and the loader name and returns the sentence or nothing. dhcp6_bootfile_url_for_node reports it through the callback, once per node per makedhcp, and then drops the boot file as before. Naming the node matters because the path comes from noderes.tftpdir, which the reader cannot derive from the site value. The three assertions the previous commit added to dhcp_dhcpv6_duid.t now pass, and the nine in dhcp_ipxe_readiness.t with them. Blanking the file check in the new sub fails five of those nine and leaves the four controls passing. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>