updatenode supports upgrading packages from os distro

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6844 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2010-07-23 18:46:17 +00:00
parent b1d09c5786
commit 3a79372c4e

View File

@ -388,7 +388,7 @@ sub preprocess_updatenode
# figure out the diskless nodes list and non-diskless nodes
foreach my $type (keys %insttype_node) {
if ($type eq "netboot" || $type eq "diskless") {
if ($type eq "netboot" || $type eq "statelite" || $type eq "diskless") {
push @dsklsnodes, @{$insttype_node{$type}};
} else {
push @notdsklsnodes, @{$insttype_node{$type}};
@ -836,12 +836,12 @@ sub updatenode
my $cmd;
if ($::SETSERVER) {
$cmd =
"XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcatdsklspost 2 -M $snkey otherpkgs 2>&1";
"XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcatdsklspost 2 -M $snkey ospkgs,otherpkgs 2>&1";
} else {
$cmd =
"XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcatdsklspost 2 -m $snkey otherpkgs 2>&1";
"XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcatdsklspost 2 -m $snkey ospkgs,otherpkgs 2>&1";
}
if ($::VERBOSE)