Support generic recognition of RHEL6.x media

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-02-01 15:25:59 +00:00
parent 8435630bd0
commit 6628d91671

View File

@ -1526,6 +1526,24 @@ sub copycd
$distname = "ol$1.$2";
}
}
elsif ($desc =~ /^Red Hat Enterprise Linux (\d)\.(\d)/)
{
my $edition;
my $version = "$1.$2";
if (-d "$mntpath/Server") {
$edition = "s";
} elsif (-d "$mntpath/Client") {
$edition = "c";
} elsif (-d "$mntpath/Workstation") {
$edition = "w";
} elsif (-d "$mntpath/ComputeNode") {
$edition = "cn";
}
unless ($distname)
{
$distname = "rhel$edition$version";
}
}
elsif ($desc =~ /^Final$/)
{
unless ($distname)