mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-10 19:46:24 +00:00
01e9ea5152
riscv64 nodes have no boot loader unless one reaches /tftpboot/boot/grub2, and nothing on an Ubuntu management node puts one there. The grub2 image the media carry cannot serve: it holds a built-in configuration that looks for the live filesystem, so a node that loads it drops to a grub prompt instead of reading the configuration nodeset writes. copycd now builds a netboot image from the grub2 package the media ship, and warns when it cannot, because the node has no other source for one. An image already in place is kept only when it is a whole executable image for the architecture the firmware loads and carries the prefix this boot path needs; one that is not is removed, so a rebuild that cannot run leaves nodeset reporting a missing loader rather than serving an unusable one. The media of every other architecture are untouched. Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>