From d4acaaa8eb210431c8c23141332ef993da45c1eb Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 21 Nov 2012 17:52:27 +0000 Subject: [PATCH] Distinguish between hyper v and normal edition git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 32bbcd513..463a3b4a8 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -530,7 +530,18 @@ sub copycd if (-r $mntpath . "/sources/background_cli.bmp") { $distname = "win8"; } elsif (-r $mntpath . "/sources/background_svr.bmp") { - $distname = "win2012"; + if (-r $mntpath . "/sources/EI.CFG") { + my $eicfg; + open($eicfg,"<", $mntpath . "/sources/EI.CFG"); + my $eiline = <$eicfg>; + $eiline = <$eicfg>; + if ($eiline =~ /Hyper/) { + $distname = "winhv2012"; + } + } + unless ($distname) { + $distname = "win2012"; + } } } }