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 });