mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Revert to using discinfo
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user