diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 0da104fa0..0eded1d50 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -299,7 +299,7 @@ sub subvars { my $writerepo; my $c = 0; foreach my $pkgdir (@pkgdirs) { - if ($platform =~ /^(rh|SL|centos|fedora)$/) { + if ($platform =~ /^(rh|SL|centos|ol|fedora)$/) { if ($c == 0) { # After some tests, if we put the repo in pre scripts in the kickstart like for rhels6.x # the rhels5.9 will not be installed successfully. So put in kickstart directly.