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;