mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-24 11:22:18 +00:00
965430fa6a
On ISC DHCP a KVM guest that xCAT defines and that netboots with ipxe boots neither stage: the firmware receives the iPXE boot script and iPXE receives the shim. addnode6 and addnode6_other_clients chose the boot file of each DHCPv6 host from the client label of its DUID. The label follows from vpd.uuid, but which UUID order the firmware sends depends on the UUID of the libvirt domain. For a guest that mkvm defines the labels are reversed. The two hosts that hold a UUID order of a chainloading node now carry one statement that chooses the file by boot stage: the boot script when option 15, the User Class, holds iPXE, and the shim otherwise. The Kea classes from kea_node_boot_classes6 make the same split. isc_dhcp6_boot_stage_statement in BootPolicy builds the statement. dhcp_dhcpv6_duid.t asserts the statement on both hosts of a KVM node. The assertions fail without this change. Two older assertions expected one file per label and now expect the statement. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>