Distinguish between hyper v and normal edition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ae93fe56ce
commit
d4acaaa8eb
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user