2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-27 14:51:10 +00:00

fix for Ubuntu MN to provision rhel CN failed

This commit is contained in:
mavscjb
2015-11-02 04:05:38 -05:00
parent 0b9653229e
commit 641094dda9

View File

@@ -616,7 +616,22 @@ sub assign_to_osimage
unless ( -d "$otherpkgdir" ) {
mkpath("$otherpkgdir");
}
if ( $debianflag )
# Consider the mixed environment
my $imagerhelflag = 0;
if ( $osimage =~ /rhel/ ){
$imagerhelflag = 1;
}
if ( $debianflag && $imagerhelflag)
{
unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" )
{
system("ln -sf $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame} ");
}
}
elsif ( $debianflag )
{
unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" )
{