Menu

#156 Unsupported CentOS: RHEL5AS & RHEL6AS

open
nobody
TestAPI (4)
5
2011-11-09
2011-11-09
Anonymous
No

Proposed fix:

405 if ($version =~ /^4\./) {
406 $distro='RHEL4AS';
407 }
> 408 elsif ($version =~ /^5\./) {
> 409 $distro='RHEL5AS';
> 410 }
> elsif ($version =~ /^6\./) {
> $distro='RHEL6AS';
> }
411 elsif ($version =~ /^3\./) {
412 $distro='RHEL3AS';
413 }
414 else { 415 print STDERR "$err Could not determine CentOS version ! Setting to Red Hat Enterprise 4 AS.\n";
416 $distro='RHEL4AS';
417 }
418 }

557 my %osHash = ("LINUX" => [
558 "DB2.2", "DB3.0",
559 "RH6.0","RH6.1","RH6.2","RH7.0",
560 "RH7.1","RH7.2","RH7.3","RH8.0",
561 "RH9",
562 "RHEL4AS","RHEL4ES","RHEL4WS",
>>563 "RHEL5AS","RHEL6AS","RHEL7AS",
564 "RHEL3AS","RHEL3ES","RHEL3WS",
565 "RHEL2AS","RHEL2ES","RHEL2WS",
566 "RHFC1","RHFC2","RHFC3","RHFC4","RHFC5",
567 "MN6.0","MN6.1 ","MN7.0","MN7.1",
568 "MN7.2","MN8.0","MN8.1","MN8.2",
569 "MN9.2",
570 "MN10.0","MN10.1","MN2006.0",
571 "SE7.2","SE7.3", "SE8.0","SE8.1","SE9.0","S E9.1",
572 "SE9.2","SE9.3","SE10.0",
573 "SESLES8","SESLES9",
574 "TB7.0"
575 ],

OSMap:
>> 27 bin,grub,'/sbin/grub'
>>bin,logger,'/bin/logger',RHEL5AS
>>bin,ping6,'/bin/ping6',DB,RHEL3,RHEL5AWS,RHEL6AWS,RHFC1,RHFC2,RHFC3,RHFC4,RHFC5,SE9.1,SE9.2,SE9.3,SE10.0,SESLES9
!/usr/kerberos/bin/rcp
!/usr/kerberos/bin/rsh

Discussion


Log in to post a comment.