defect 3317678: fix the issue that cannot get correct nodestate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7641f19168
commit
57b94e7f75
@ -503,7 +503,7 @@ sub makescript
|
||||
elsif ($os =~ /aix.*/) { $platform = "aix"; }
|
||||
elsif ($os =~ /AIX.*/) { $platform = "AIX"; }
|
||||
}
|
||||
if (($nodesetstate) && ($nodesetstate eq "netboot"))
|
||||
if (($nodesetstate) && ($nodesetstate eq "netboot" || $nodesetstate eq "statelite"))
|
||||
{
|
||||
$stat = "netboot";
|
||||
}
|
||||
@ -588,16 +588,16 @@ sub makescript
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!$syncfile)
|
||||
{
|
||||
my $stat = "install";
|
||||
if (($nodesetstate) && ($nodesetstate eq "netboot")) {
|
||||
if (($nodesetstate) && ($nodesetstate eq "netboot" || $nodesetstate eq "statelite")) {
|
||||
$stat = "netboot";
|
||||
}
|
||||
$syncfile =
|
||||
xCAT::SvrUtils->getsynclistfile(undef, $os, $arch, $profile, $stat);
|
||||
}
|
||||
if (!defined($syncfile))
|
||||
if (!$syncfile)
|
||||
{
|
||||
push @scriptd, "NOSYNCFILES=1\n";
|
||||
push @scriptd, "export NOSYNCFILES\n";
|
||||
|
@ -149,6 +149,13 @@ sub get_nodeset_state
|
||||
$state = $a[0];
|
||||
|
||||
}
|
||||
if ($boottype eq "xnba")
|
||||
{
|
||||
require xCAT_plugin::xnba;
|
||||
my $tmp = xCAT_plugin::xnba::getstate($node);
|
||||
my @a = split(' ', $tmp);
|
||||
$state = $a[0];
|
||||
}
|
||||
elsif ($boottype eq "yaboot")
|
||||
{
|
||||
require xCAT_plugin::yaboot;
|
||||
|
Loading…
Reference in New Issue
Block a user