From 75fa389d33f811d78c5a5275f792a61d32f14653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Fri, 4 Sep 2026 12:15:09 -0300 Subject: [PATCH] feat(genimage): add the riscv64 resolver libraries to the netboot image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The image carries the name service libraries of its architecture, and riscv64 matched neither the x86_64 nor the ppc64el branch. It fell through to the generic path, which looks for lib/libnss_dns.so.2, so a riscv64 image shipped without a resolver and the node could not resolve any name. Ubuntu keeps them in lib/riscv64-linux-gnu, confirmed in the 24.04.4 riscv64 server filesystem. Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com> --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 475d9ae00..c63de378e 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -1786,6 +1786,11 @@ EOMS push @filestoadd, $_ if (-e "$rootimg_dir/$_"); } + } elsif ($arch =~ /riscv64/) { + foreach ("lib/riscv64-linux-gnu/libnss_files.so.2", "lib/riscv64-linux-gnu/libnss_dns.so.2") { + push @filestoadd, $_ if (-e "$rootimg_dir/$_"); + } + } else { push @filestoadd, "lib/libnss_dns.so.2" if (-e "$rootimg_dir/lib/libnss_dns.so.2"); }