mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
donot create statelite osimages and diskless service osimages after copycds,
This commit is contained in:
parent
ea592fd434
commit
db8a4dd07d
@ -1048,7 +1048,7 @@ sub update_tables_with_diskless_image
|
||||
if ($profile) {
|
||||
$profiles{$profile} = 1;
|
||||
} else {
|
||||
my @tmplfiles=glob($cuspath."/{compute,service}*.pkglist");
|
||||
my @tmplfiles=glob($cuspath."/compute*.pkglist");
|
||||
foreach (@tmplfiles) {
|
||||
my $tmpf=basename($_);
|
||||
#get the profile name out of the file, TODO: this does not work if the profile name contains the '.'
|
||||
@ -1056,7 +1056,7 @@ sub update_tables_with_diskless_image
|
||||
$tmpf = $1;
|
||||
$profiles{$tmpf}=1;
|
||||
}
|
||||
@tmplfiles=glob($defpath."/{compute,service}*.pkglist");
|
||||
@tmplfiles=glob($defpath."/compute*.pkglist");
|
||||
foreach (@tmplfiles) {
|
||||
my $tmpf=basename($_);
|
||||
#get the profile name out of the file, TODO: this does not work if the profile name contains the '.'
|
||||
|
@ -2337,10 +2337,6 @@ sub copycd
|
||||
#$callback->({data => "Error when updating the osimage tables for stateless: " . $ret[1]});
|
||||
#}
|
||||
|
||||
my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path,$osdistroname);
|
||||
#if ($ret[0] != 0) {
|
||||
#$callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]});
|
||||
#}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -430,10 +430,6 @@ sub copycd
|
||||
if ($ret[0] != 0) {
|
||||
$callback->({data => "Error when updating the osimage tables for stateless: " . $ret[1]});
|
||||
}
|
||||
my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite", $temppath, $osdistroname);
|
||||
if ($ret[0] != 0) {
|
||||
$callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2042,10 +2042,6 @@ sub copycd
|
||||
$callback->({data => "Error when updating the osimage tables for stateless: " . $ret[1]});
|
||||
}
|
||||
|
||||
my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path,$osdistroname);
|
||||
if ($ret[0] != 0) {
|
||||
$callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user