From ae93fe56cee6b96d099b9e32931f9e0f05a563c8 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 21 Nov 2012 17:38:07 +0000 Subject: [PATCH] Distingush between 2012 and 8 versions of windows git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 6b641e30c..32bbcd513 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -527,7 +527,11 @@ sub copycd } elsif (/BuildBranch=win7_rtm/){ $distname = "win7"; } elsif (/BuildBranch=win8_rtm/){ - $distname = "win8"; + if (-r $mntpath . "/sources/background_cli.bmp") { + $distname = "win8"; + } elsif (-r $mntpath . "/sources/background_svr.bmp") { + $distname = "win2012"; + } } } close(DBNAME);