From a3524a7cdb0b7edcf6087daea81dcb150e85440f Mon Sep 17 00:00:00 2001 From: vallard Date: Mon, 9 Nov 2009 20:35:43 +0000 Subject: [PATCH] add windows 7 support for copycds git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index e1df5c2b4..a57881262 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -412,6 +412,19 @@ sub copycd $distname = "win2k8"; } } + # add support for Win7 + if(-r $path . "/sources/idwbinfo.txt"){ + open(DBNAME, $path . "/sources/idwbinfo.txt"); + while(){ + if(/BuildArch=amd64/){ + $darch = "x86_64"; + } + if(/BuildBranch=win7_rtm/){ + $distname = "win7"; + } + } + close(DBNAME); + } unless ($distname) { return;