From fcd5f2fc457b4e17d8a87a08257a3efdcb567b79 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 8 Aug 2013 14:26:51 -0400 Subject: [PATCH] fixed bug 3732, centos 5.x needs the url rpository --- xCAT-server/lib/perl/xCAT/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 57e221766..cb21c97c0 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -178,7 +178,7 @@ sub subvars { my $source_in_pre; my $c = 0; foreach my $pkgdir(@pkgdirs) { - if( $platform =~ /^(rh|SL)$/ ) { + if( $platform =~ /^(rh|SL|centos)$/ ) { 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.