From 0c9860fcfa2a775fd89a4c76727e014034945ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 2 Nov 2026 15:16:58 -0300 Subject: [PATCH] fix(netboot): build and pack openEuler riscv64 diskless images genimage and packimage admit openEuler images only for x86_64 and ppc64le. For the riscv64 osimage that copycds creates, genimage stops with "Unsupported openEuler release or architecture" and packimage with "Unsupported openEuler image release or architecture". Admit riscv64 in both commands. --- xCAT-server/lib/xcat/plugins/genimage.pm | 2 +- xCAT-server/lib/xcat/plugins/packimage.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/genimage.pm b/xCAT-server/lib/xcat/plugins/genimage.pm index 92493e92af..8c5f606470 100644 --- a/xCAT-server/lib/xcat/plugins/genimage.pm +++ b/xCAT-server/lib/xcat/plugins/genimage.pm @@ -305,7 +305,7 @@ sub process_request { } if ($osver =~ /^openeuler/) { unless (defined(xCAT::Utils::normalize_openeuler_version(substr($osver, 9))) - && $arch =~ /^(?:x86_64|ppc64le)$/) { + && $arch =~ /^(?:x86_64|ppc64le|riscv64)$/) { $callback->({ error => ["Unsupported openEuler release or architecture: $osver $arch"], errorcode => [1] }); return 1; } diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 54293761b5..e873c59476 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -201,7 +201,7 @@ sub process_request { my $is_openeuler = $osver =~ /^openeuler/; if ($is_openeuler) { unless (defined(xCAT::Utils::normalize_openeuler_version(substr($osver, 9))) - && $arch =~ /^(?:x86_64|ppc64le)$/) { + && $arch =~ /^(?:x86_64|ppc64le|riscv64)$/) { $callback->({ error => ["Unsupported openEuler image release or architecture: $osver $arch"], errorcode => [1] }); return 1; }