From 3e1316d9a64121c02e69a86d919278c829271246 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 5 Aug 2013 17:27:15 +0800 Subject: [PATCH] fix for bug 4241: do not try to run mknb on ppc64 for now --- xCAT-server/sbin/xcatconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 4b1e3d2fd..5196c24cb 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -1888,13 +1888,15 @@ sub mknb xCAT::MsgUtils->message('I', "Running '$cmd', triggered by the installation/update of xCAT-genesis-base-x86_64 ..."); } #my $outref = xCAT::Utils->runcmd("$cmd", 0); - system($cmd); - if ($? != 0) { - my $rc = $? >> 8; - xCAT::MsgUtils->message('E', "The 'mknb $::arch' command returned error code: $rc."); - } - else { - xCAT::MsgUtils->message('I', "The 'mknb $::arch' command completed successfully."); + if ($cmd) { + system($cmd); + if ($? != 0) { + my $rc = $? >> 8; + xCAT::MsgUtils->message('E', "The 'mknb $::arch' command returned error code: $rc."); + } + else { + xCAT::MsgUtils->message('I', "The 'mknb $::arch' command completed successfully."); + } } }