From 263ee3af3a5bdbeb2f8a35c6b581c16505abb89b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 10 Feb 2014 10:24:59 -0500 Subject: [PATCH] Add signature detection for RHEL7 media to anaconda --- xCAT-server/lib/xcat/plugins/anaconda.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 27921c8f5..736a8e50f 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2025,6 +2025,18 @@ sub copycd $distname = "ol$1.$2"; } } + elsif ($desc =~ /^RHEL-(\d)\.(\d) ([^.]*)\./) { + my $edition = ""; + my $version = "$1.$2"; + my %editionmap = ( + "Server" => "s", + ); + $edition = $editionmap{$3}; + unless ($distname) + { + $distname = "rhel$edition$version"; + } + } elsif ($desc =~ /^Red Hat Enterprise Linux (\d)\.(\d)/) { my $edition;