2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-07 02:38:15 +00:00

Add RHEL media autodetection

Rather than using discids, RedHat could also use
media autodetection.
This commit is contained in:
Jarrod Johnson
2020-06-19 07:23:02 -04:00
parent 04588732a7
commit 96cf51920b

View File

@@ -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;