2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

fix for Ubuntu MN to provision rhel CN failed

This commit is contained in:
mavscjb 2015-11-02 21:58:12 -05:00
parent 641094dda9
commit 0dd7e79635

View File

@ -397,7 +397,7 @@ sub assign_to_osimage
my $tabs = shift;
(my $kitcomptable) = $tabs->{kitcomponent}->getAttribs({kitcompname=> $kitcomp}, 'kitname', 'kitreponame', 'basename', 'kitcompdeps', 'kitpkgdeps', 'prerequisite', 'exlist', 'genimage_postinstall','postbootscripts', 'driverpacks');
(my $osimagetable) = $tabs->{osimage}->getAttribs({imagename=> $osimage}, 'provmethod', 'osarch', 'postbootscripts', 'kitcomponents');
(my $osimagetable) = $tabs->{osimage}->getAttribs({imagename=> $osimage}, 'provmethod', 'osarch', 'postbootscripts', 'kitcomponents', 'osvers');
(my $linuximagetable) = $tabs->{linuximage}->getAttribs({imagename=> $osimage}, 'rootimgdir', 'exlist', 'postinstall', 'otherpkglist', 'otherpkgdir', 'driverupdatesrc');
# Reading installdir.
@ -618,9 +618,12 @@ sub assign_to_osimage
}
# Consider the mixed environment
my $imagerhelflag = 0;
if ( $osimage =~ /rhel/ ){
$imagerhelflag = 1;
}
if ( $osimagetable and $osimagetable->{osvers} ) {
if ($osimagetable->{osvers} =~ /rhel/){
$imagerhelflag = 1;
}
}
if ( $debianflag && $imagerhelflag)
{