diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 33d7dc7fd..b0a95b8fe 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -8298,7 +8298,15 @@ sub prenimnodeset push @{$rsp->{data}}, "Updating the spot named \'$i\'.\n"; xCAT::MsgUtils->message("I", $rsp, $callback); - my $rc = &updatespot($i, \%imghash, \@nodelist, $callback, $subreq); + # need list of nodes that use this image only!!! + my @osinodes; + foreach my $n (@nodelist) { + if ($i eq $nodeosi{$n} ) { + push @osinodes, $n; + } + } + + my $rc = &updatespot($i, \%imghash, \@osinodes, $callback, $subreq); if ($rc != 0) { my $rsp; @@ -9812,7 +9820,16 @@ sub mkdsklsnode # if this has a shared_root resource then # it might need statelite setup - my $rc=xCAT::InstUtils->dolitesetup($image, \%imagehash, \@nodelist, $callback, $subreq); + + # need list of nodes that use this image only!!! + my @osinodes; + foreach my $n (@nodelist) { + if ($image eq $nodeosi{$n} ) { + push @osinodes, $n; + } + } + + my $rc=xCAT::InstUtils->dolitesetup($image, \%imagehash, \@osinodes, $callback, $subreq); if ($rc eq 1) { # error my $rsp; push @{$rsp->{data}}, qq{Could not complete the statelite setup.};