2
0
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:
penguhyang
2016-11-01 10:15:51 +08:00
committed by yangsong
parent 331d7868fa
commit 4e89b75454

View File

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