From 85daf29a342a5e68176a94030f7223330b792103 Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 23 Nov 2012 07:27:06 +0000 Subject: [PATCH] pass the tftpdir to xcatdsklspost, xcataixpost in updatenode.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 05b94c980..2016b896b 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1175,6 +1175,7 @@ sub updatenoderunps my $nodes = $request->{node}; my $localhostname = hostname(); my $installdir = xCAT::TableUtils->getInstallDir(); + my $tftpdir = xCAT::TableUtils->getTftpDir(); my ($rc, $AIXnodes, $Linuxnodes) = xCAT::InstUtils->getOSnodes($nodes); my $postscripts = ""; my $orig_postscripts = ""; @@ -1223,7 +1224,7 @@ sub updatenoderunps "-s", "-v", "-e", - "$installdir/postscripts/xcatdsklspost $mode -M $snkey '$postscripts'" + "$installdir/postscripts/xcatdsklspost $mode -M $snkey '$postscripts' --tftp $tftpdir" ]; } @@ -1235,7 +1236,7 @@ sub updatenoderunps "-s", "-v", "-e", - "$installdir/postscripts/xcatdsklspost $mode -m $snkey '$postscripts'" + "$installdir/postscripts/xcatdsklspost $mode -m $snkey '$postscripts' --tftp $tftpdir" ]; } @@ -1305,12 +1306,12 @@ sub updatenoderunps if ($::SETSERVER) { $cmd = - "XCATBYPASS=Y $::XCATROOT/bin/xdsh --nodestatus $nodestring -s -v -e $installdir/postscripts/xcataixpost -M $snkey -c $mode '$postscripts' 2>&1"; + "XCATBYPASS=Y $::XCATROOT/bin/xdsh --nodestatus $nodestring -s -v -e $installdir/postscripts/xcataixpost -M $snkey -c $mode --tftp $tftpdir '$postscripts' 2>&1"; } else { $cmd = - "XCATBYPASS=Y $::XCATROOT/bin/xdsh --nodestatus $nodestring -s -v -e $installdir/postscripts/xcataixpost -m $snkey -c $mode '$postscripts' 2>&1"; + "XCATBYPASS=Y $::XCATROOT/bin/xdsh --nodestatus $nodestring -s -v -e $installdir/postscripts/xcataixpost -m $snkey -c $mode --tftp $tftpdir '$postscripts' 2>&1"; } if ($::VERBOSE) @@ -1595,6 +1596,7 @@ sub updatenodesoftware my $updates = shift; my $nodes = $request->{node}; my $installdir = xCAT::TableUtils->getInstallDir(); + my $tftpdir = xCAT::TableUtils->getTftpDir(); my $localhostname = hostname(); my $rsp; $CALLBACK = $callback; @@ -1626,7 +1628,7 @@ sub updatenodesoftware if ($::SETSERVER) { $cmd = - "$installdir/postscripts/xcatdsklspost 2 -M $snkey 'ospkgs,otherpkgs'" ; + "$installdir/postscripts/xcatdsklspost 2 -M $snkey 'ospkgs,otherpkgs' --tftp $tftpdir" ; $args1 = [ "--nodestatus", "-s", @@ -1642,7 +1644,7 @@ sub updatenodesoftware { $cmd = - "$installdir/postscripts/xcatdsklspost 2 -m $snkey 'ospkgs,otherpkgs'"; + "$installdir/postscripts/xcatdsklspost 2 -m $snkey 'ospkgs,otherpkgs' --tftp $tftpdir"; $args1 = [ "--nodestatus", "-s",