mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-26 12:22:15 +00:00
2ac19d7202
mknetboot read networks.gateway and passed it to dracut_static_ip6 as it stood. '<xcatmaster>' is the common value of that column, and it reached the kernel command line as "[<xcatmaster>]", which is not an address. A node whose image server sits off its own link then had no route to it. static_ip6_boot_arg resolves the gateway through ipv6_server_for_node, which already knew the placeholder and which the AutoYaST path already used. A gateway that does not resolve is dropped rather than written as a bad address: an address with no route still reaches a server on the same link. The composition is its own sub, taking its two lookups as coderefs, because the helpers were covered while nothing connected them to the call site. debian_static_ip6_gateway.t drives it with the real dracut_static_ip6. Passing the gateway unresolved puts "[<xcatmaster>]" in the argument, which two of its checks report. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>