From 1efeef489570b6344c50d915caa509ff784ef4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 3 Sep 2026 19:12:02 -0300 Subject: [PATCH] refactor(genimage): take the debootstrap architecture from the shared mapping genimage translated one architecture for debootstrap, x86_64 to amd64, and compared against a bareword rather than a string, which only resolves because the script does not enable strict subs. Read the name from xCAT::Utils, which genimage already loads. Every architecture reaches debootstrap with the name it does today. --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 2f2b6995b..475d9ae00 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -215,8 +215,7 @@ foreach (@ndrivers, @default_ndrivers) { } } -my $uarch = $arch; -$uarch = "amd64" if ($arch eq x86_64); +my $uarch = xCAT::Utils->debian_arch($arch); unless ($onlyinitrd) {