From 7917678e39cd81ba16cd7bf9bbc254a27451310a Mon Sep 17 00:00:00 2001 From: Bin Xu Date: Thu, 3 Aug 2017 15:52:25 +0800 Subject: [PATCH] Fix 3603, if using ppc64le/ppc64el for mknb, just use 'ppc64' as a substitude. --- xCAT-server/lib/xcat/plugins/mknb.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index e920fb1e4..5219e3b51 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -98,9 +98,11 @@ sub process_request { $callback->({ error => "Need to specify architecture (x86, x86_64 or ppc64)" }, { errorcode => [1] }); return; } elsif ($arch eq "ppc64le" or $arch eq "ppc64el") { - $callback->({ data => "The arch:$arch is not supported at present, pls use \"ppc64\" instead" }); - return; + $callback->({ data => "The arch:$arch is not supported at present, use \"ppc64\" instead" }); + $arch = 'ppc64'; + $request->{arg}->[0] = $arch; } + unless (-d "$::XCATROOT/share/xcat/netboot/$arch" or -d "$::XCATROOT/share/xcat/netboot/genesis/$arch") { $callback->({ error => "Unable to find directory $::XCATROOT/share/xcat/netboot/$arch or $::XCATROOT/share/xcat/netboot/genesis/$arch", errorcode => [1] }); return;