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
This commit is contained in:
parent
496c73b65c
commit
85daf29a34
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user