fix statelite setup bug - 3564958

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2012-09-07 18:21:23 +00:00
parent bef2a2a82e
commit 696c1b486a

View File

@ -9871,32 +9871,30 @@ sub mkdsklsnode
#
# not needed if using a shared file system
if ($sharedinstall eq "no") {
if (!xCAT::InstUtils->is_me($nimprime)) {
my $statelite=0;
foreach my $image (@image_names){
if ($imagehash{$image}{shared_root}) {
my $statelite=0;
foreach my $image (@image_names){
if ($imagehash{$image}{shared_root}) {
# if this has a shared_root resource then
# it might need statelite setup
# if this has a shared_root resource then
# it might need statelite setup
# need list of nodes that use this image only!!!
my @osinodes;
foreach my $n (@nodelist) {
if ($image eq $nodeosi{$n} ) {
push @osinodes, $n;
}
# 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.};
xCAT::MsgUtils->message("E", $rsp, $callback);
return 1;
}
}
}
}
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.};
xCAT::MsgUtils->message("E", $rsp, $callback);
return 1;
}
}
}
}
#