Add signature detection for RHEL7 media to anaconda

This commit is contained in:
Jarrod Johnson 2014-02-10 10:24:59 -05:00
parent b7a04d3c94
commit 29b7e4331b

View File

@ -2024,6 +2024,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;