From 6628d916718e3b0755a3c52c95fed0fad95a1f4d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 1 Feb 2013 15:25:59 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/anaconda.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index fb9679673..c6b1e1a36 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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)