From aa0a7058469cb8ef019750c4410e5a8c565cd92e Mon Sep 17 00:00:00 2001 From: lissav Date: Sat, 1 Dec 2012 12:24:34 +0000 Subject: [PATCH] use xcatdsklspost for both AIX and Linux nodes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index b0463a010..ffbe8e8a3 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1184,6 +1184,15 @@ sub updatenoderunps { $orig_postscripts = $request->{postscripts}->[0]; } + # copy xcataixpost down for any AIX nodes + xCAT::Utils->runxcmd( + { + command => ['xdcp'], + node => \@$nodes, + arg => ['/install/postscripts/xcataixpost','/tmp/xcataixpost'], + }, + $subreq, 0, 1 + ); if (scalar(@$Linuxnodes)) { @@ -1276,7 +1285,6 @@ sub updatenoderunps # we have AIX nodes $postscripts = $orig_postscripts; - # need to pass the name of the server on the xcataixpost cmd line # get server names as known by the nodes my %servernodes = @@ -1311,7 +1319,7 @@ sub updatenoderunps "-s", "-v", "-e", - "$installdir/postscripts/xcataixpost -M $snkey -c $mode --tftp $tftpdir '$postscripts'" + "$installdir/postscripts/xcatdsklspost -M $snkey -c $mode --tftp $tftpdir '$postscripts'" ]; } else @@ -1321,7 +1329,7 @@ sub updatenoderunps "-s", "-v", "-e", - "$installdir/postscripts/xcataixpost -m $snkey -c $mode --tftp $tftpdir '$postscripts' " + "$installdir/postscripts/xcatdsklspost -m $snkey -c $mode --tftp $tftpdir '$postscripts' " ]; }