2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 04:27:55 +00:00

fix(genesis): preserve canonical ppc64 images

This commit is contained in:
Vinícius Ferrão
2026-08-24 23:51:09 -03:00
parent ecce32a3d6
commit 33124a1483
+10
View File
@@ -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' });
}