2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 17:58:14 +00:00

Add CentOS disc detection in a more generic way

This commit is contained in:
Jarrod Johnson
2019-11-05 08:50:13 -05:00
parent dc3db7dba1
commit c2acfbc56b

View File

@@ -2049,6 +2049,9 @@ sub copycd
$darch = "x86";
}
close($dinfo);
if ($desc and $desc =~ /CentOS Linux (.*)/) {
$distname = "centos" . $1;
}
if ($xCAT::data::discinfo::distnames{$did})
{
unless ($distname)