mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-16 03:10:36 +00:00
auto recognize rhhpc iso on copycds (#2034)
This commit is contained in:
@ -2257,6 +2257,17 @@ sub copycd
|
||||
#
|
||||
my @rhel_version = split / /, $desc;
|
||||
$distname = "rhels" . $rhel_version[4];
|
||||
open($dinfo, $mntpath . "/.treeinfo");
|
||||
while (<$dinfo>) {
|
||||
chomp($_);
|
||||
s/\s+$//; #remove trailing spaces
|
||||
next if /^\s*$/; #-- skip empty lines
|
||||
if ($_ =~ /variant = ComputeNode/) {
|
||||
$distname = "rhelhpc" . $rhel_version[4];
|
||||
last;
|
||||
}
|
||||
}
|
||||
close($dinfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user