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"; + } } } }