From fea2f1201efd57cf0c7f2582bfbcd97c91568c0a Mon Sep 17 00:00:00 2001 From: vallard Date: Mon, 5 Jul 2010 21:45:17 +0000 Subject: [PATCH] updated to fix bug in kickstart templates git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/imgport.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/imgport.pm b/xCAT-server/lib/xcat/plugins/imgport.pm index 2fee6622c..f336813f0 100644 --- a/xCAT-server/lib/xcat/plugins/imgport.pm +++ b/xCAT-server/lib/xcat/plugins/imgport.pm @@ -747,8 +747,13 @@ sub make_files { if($os =~ /win/){ $os = 'windows'; - } - my $instdir = "$installroot/custom/$os/$arch"; + }elsif($os =~ /centos/){ + $os = 'centos'; + }elsif($os =~ /rh/){ + $os = 'rh'; + } + + my $instdir = "$installroot/custom/install/$os/$arch"; #mkpath("$instdir", { verbose => 1, mode => 0755, error => \my $err }); mkpath("$instdir", { verbose => 1, mode => 0755 });