From 91d130262207d426233116f8c321af6435c58ebd Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 1 Feb 2013 18:45:36 +0000 Subject: [PATCH] Fix problem where Hyper-V was mis-characterized as 'Linux' Have osdistro table recall the OS version number of Windows operating systems. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 16caef70d..b3624b067 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -1556,9 +1556,16 @@ sub update_osdistro_table my $ostype="Linux"; #like Linux, Windows if (($osver =~ /^win/) || ($osver =~ /^imagex/)) { - $osver="windows"; + if ($osver =~ /^win\d/) { + $osver =~ s/^win/windows/; + } elsif ($osver =~ /^imagex/) { + $osver="windows"; + } $ostype="Windows"; } + if ($osver =~ /hyperv/) { + $ostype = "Windows"; + } unless($distname){