2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-23 14:35:38 +00:00

Revert to using discinfo

This commit is contained in:
Mark Gurevich
2021-07-27 10:18:17 -04:00
parent 5f54bceba4
commit fe71328f30
2 changed files with 1 additions and 10 deletions

View File

@ -14,6 +14,7 @@ require Exporter;
use strict;
our %distnames = (
"1624205633.869423" => "rocky8.4", #x86_64
"1578087695.538488" => "centos8.1", #x86_64
"1578087695.537220" => "centos8.1", #ppc64le
"1480943823.812754" => "centos7.3", #x86_64

View File

@ -2132,16 +2132,6 @@ sub copycd
my @ol_version = split /[- ]/, $desc;
$distname = "ol" . $ol_version[1];
}
elsif ($desc =~ /Rocky Linux/)
{
#
# Attempt to auto-detect for Rocky Linux OS, the last element
# (accessed with [-1] array index) has typically been the version
# ex: "Rocky Linux 8"
#
my @rl_version = split / /, $desc;
$distname = "rocky" . $rl_version[-1];
}
elsif ($desc =~ /^[\d\.]+$/)
{
open($dinfo, $mntpath . "/.treeinfo");