From 96cf51920bb0af24b33432be46b6587180a8d7dd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 19 Jun 2020 07:23:02 -0400 Subject: [PATCH] Add RHEL media autodetection Rather than using discids, RedHat could also use media autodetection. --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index e8a433176..c878530f7 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2075,6 +2075,8 @@ sub copycd $release =~ /.*centos-release-([^-]*)-.*/; $distname = "centos" . $1; } + } elsif ($desc and $desc =~ /Red Hat Enterprise Linux (.*)/) { + $distname = "rhels" . $1; } elsif (-r $mntpath . "/isolinux/isolinux.cfg") { my $icfg;