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
This commit is contained in:
vallard 2009-11-09 20:35:43 +00:00
parent 81896cd3e9
commit a3524a7cdb

View File

@ -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(<DBNAME>){
if(/BuildArch=amd64/){
$darch = "x86_64";
}
if(/BuildBranch=win7_rtm/){
$distname = "win7";
}
}
close(DBNAME);
}
unless ($distname)
{
return;