From 33124a1483111d7856a88c1cb193152d7d6ad04d 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, 24 Aug 2026 23:51:09 -0300 Subject: [PATCH] fix(genesis): preserve canonical ppc64 images --- xCAT-server/lib/xcat/plugins/mknb.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index 005ef3edb..541f6e91a 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -426,6 +426,16 @@ sub process_request { $callback->({ error => "Unable to find a Genesis image for architecture $requested_arch", errorcode => [1] }); return; } + if ($canonical_arch eq 'ppc64le' && $arch eq 'ppc64') { + my $marker = "$tftpdir/xcat/genesis.exact-arch.ppc64"; + if (-e $marker || -l $marker) { + $callback->({ + error => 'Cannot use the legacy ppc64le fallback while a canonical ppc64 image is published', + errorcode => [1], + }); + return; + } + } if ($requested_arch eq 'ppc64el') { $callback->({ data => 'Using the canonical architecture name ppc64le' }); }