Fix problem where Hyper-V was mis-characterized as 'Linux'
Have osdistro table recall the OS version number of Windows operating systems. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6628d91671
commit
91d1302622
@ -1556,9 +1556,16 @@ sub update_osdistro_table
|
||||
|
||||
my $ostype="Linux"; #like Linux, Windows
|
||||
if (($osver =~ /^win/) || ($osver =~ /^imagex/)) {
|
||||
$osver="windows";
|
||||
if ($osver =~ /^win\d/) {
|
||||
$osver =~ s/^win/windows/;
|
||||
} elsif ($osver =~ /^imagex/) {
|
||||
$osver="windows";
|
||||
}
|
||||
$ostype="Windows";
|
||||
}
|
||||
if ($osver =~ /hyperv/) {
|
||||
$ostype = "Windows";
|
||||
}
|
||||
|
||||
|
||||
unless($distname){
|
||||
|
Loading…
x
Reference in New Issue
Block a user