support AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9f73d7a11f
commit
a782292aa6
@ -137,28 +137,33 @@ sub syncmount {
|
||||
my $image;
|
||||
my $ent;
|
||||
if($syncType !~ /image/){
|
||||
$ent = $osents{$node}->[0];
|
||||
$ent = $osents{$node}->[0];
|
||||
|
||||
if (xCAT::Utils->isAIX()) {
|
||||
$image=$ent->{provmethod};
|
||||
} else {
|
||||
|
||||
unless($ent->{os} && $ent->{arch} && $ent->{profile}){
|
||||
$callback->({error=>["$node does not have os, arch, or profile defined in nodetype table"],errorcode=>[1]});
|
||||
$request = {};
|
||||
next;
|
||||
}
|
||||
unless($ent->{os} && $ent->{arch} && $ent->{profile}){
|
||||
$callback->({error=>["$node does not have os, arch, or profile defined in nodetype table"],errorcode=>[1]});
|
||||
$request = {};
|
||||
next;
|
||||
}
|
||||
|
||||
if ((!$ent->{provmethod}) || ($ent->{provmethod} eq 'statelite') || ($ent->{provmethod} eq 'netboot') || ($ent->{provmethod} eq 'install')) {
|
||||
$image = $ent->{os} . "-" . $ent->{arch} . "-statelite-" . $ent->{profile};
|
||||
} elsif (($ent->{provmethod} ne 'netboot') && ($ent->{provmethod} ne 'install')) {
|
||||
$image=$ent->{provmethod};
|
||||
$image = $ent->{os} . "-" . $ent->{arch} . "-statelite-" . $ent->{profile};
|
||||
} elsif (($ent->{provmethod} ne 'netboot') && ($ent->{provmethod} ne 'install')) {
|
||||
$image=$ent->{provmethod};
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$image=$node;
|
||||
}
|
||||
} else {
|
||||
$image=$node;
|
||||
}
|
||||
my $fData = getNodeData($syncType,$node,$image,$tab,$callback);
|
||||
# now we go through each directory and search for the file.
|
||||
showSync($syncType,$callback, $node, $fData);
|
||||
my $fData = getNodeData($syncType,$node,$image,$tab,$callback);
|
||||
# now we go through each directory and search for the file.
|
||||
showSync($syncType,$callback, $node, $fData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# In most cases the syncdir will be on the management node so
|
||||
# want to make sure its not us before we mount things.
|
||||
sub showSync {
|
||||
@ -245,9 +250,9 @@ sub getNodeData {
|
||||
my @imageInfo;
|
||||
my @attrs;
|
||||
if($type eq "dir"){
|
||||
@attrs = ['priority', 'directory'];
|
||||
@attrs = ('priority', 'directory');
|
||||
}elsif($type =~ /file|image/){
|
||||
@attrs = ['file','options'];
|
||||
@attrs = ('file','options');
|
||||
}else{
|
||||
print "Yikes! error in the code litefile;getNodeData!";
|
||||
exit 1;
|
||||
|
Loading…
Reference in New Issue
Block a user