mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
adb686f3a0
On Ubuntu 26.04 an IPv6-only diskless node boots with no address and cannot fetch its root image. grub2 adds BOOTIF= to every node, and systemd-network-generator turns it into 70-BOOTIF.network with no address. The generator drops an ip= that names no interface, and the file for a named interface sorts after 70-BOOTIF.network. debian.pm gave the static ip= an empty interface when the node had no installnic or primarynic. static_ip6_boot_arg now takes the net_params hash. It adds rd.bootif=0, so the generator writes no 70-BOOTIF.network, and it names the interface xcatboot0 through ifname=<name>:<mac> when the node has no installnic, as the EL path does. The DHCP=ipv4 drop-in for 70-BOOTIF.network then has no file to apply to on an IPv6 node. An IPv4 node is unchanged. debian_static_ip6_gateway.t fails 5 of 9 assertions without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>