-Scientific Linux contributed by Arif Ali

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-06-23 20:12:16 +00:00
parent cec64bc47f
commit b95c560979
3 changed files with 17 additions and 3 deletions

View File

@ -301,6 +301,7 @@ sub makescript {
if ($os =~ /rh.*/) { $platform = "rh"; }
elsif ($os =~ /centos.*/) { $platform = "centos"; }
elsif ($os =~ /fedora.*/) { $platform = "fedora"; }
elsif ($os =~ /sl.*/) { $platform = "sl"; }
elsif ($os =~ /sles.*/) { $platform = "sles"; }
elsif ($os =~ /aix.*/) { $platform = "aix"; }
}

View File

@ -319,6 +319,7 @@ sub getsynclistfile()
elsif ($os =~ /centos.*/) { $platform = "centos"; }
elsif ($os =~ /fedora.*/) { $platform = "fedora"; }
elsif ($os =~ /sles.*/) { $platform = "sles"; }
elsif ($os =~ /sl.*/) { $platform = "sl"; }
elsif ($os =~ /AIX.*/) { $platform = "AIX"; }
}

View File

@ -75,9 +75,9 @@ sub handled_commands
{
return {
copycd => "anaconda",
mknetboot => "nodetype:os=(centos.*)|(rh.*)|(fedora.*)",
mkinstall => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)",
mkstatelite => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)",
mknetboot => "nodetype:os=(centos.*)|(rh.*)|(fedora.*)|(sl.*)",
mkinstall => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)|(sl.*)",
mkstatelite => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)|(sl.*)",
};
}
@ -948,6 +948,7 @@ sub copycd
if ( $distname
and $distname !~ /^centos/
and $distname !~ /^fedora/
and $distname !~ /^sl/
and $distname !~ /^rh/)
{
@ -986,6 +987,13 @@ sub copycd
$distname = "centos5";
}
}
elsif ($desc =~ /^LTS$/)
{
unless ($distname)
{
$distname = "sl5";
}
}
elsif ($desc =~ /^Fedora 8$/)
{
unless ($distname)
@ -1128,6 +1136,10 @@ sub getplatform {
{
$platform = "fedora";
}
elsif ($os =~ /sl.*/)
{
$platform = "sl";
}
elsif ($os =~ /esx.*/)
{
$platform = "esx";