From 28a917b25c9d6af32039844036b044e7bccc5188 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 8 Nov 2019 08:25:32 -0500 Subject: [PATCH] Port Generic CentOS check from Lenovo tree This will do a more generic check if a discid is not found. --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index ccaabae36..24546a08d 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2064,6 +2064,8 @@ sub copycd { $distname = $xCAT::data::discinfo::distnames{$did}; } + } elsif ($desc and $desc =~ /CentOS Linux (.*)/) { + $distname = "centos" . $1; } unless ($dno) {