Add support for Oracle Linux 6.x

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-10-01 19:52:29 +00:00
parent ea2114d9ef
commit 20f6e5f026

View File

@ -38,9 +38,9 @@ sub handled_commands
{
return {
copycd => "anaconda",
mknetboot => "nodetype:os=(centos.*)|(rh.*)|(fedora.*)|(SL.*)",
mkinstall => "nodetype:os=(esxi4.1)|(esx[34].*)|(centos.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)",
mkstatelite => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)",
mknetboot => "nodetype:os=(ol.*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)",
mkinstall => "nodetype:os=(esxi4.1)|(esx[34].*)|(ol.*)|(centos.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)",
mkstatelite => "nodetype:os=(esx[34].*)|(ol.*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)",
};
}
@ -1351,6 +1351,7 @@ sub copycd
and $distname !~ /^centos/
and $distname !~ /^fedora/
and $distname !~ /^SL/
and $distname !~ /^ol/
and $distname !~ /^rh/)
{
@ -1384,6 +1385,13 @@ sub copycd
$distname =$xCAT::data::discinfo::distnames{$did};
}
}
elsif ($desc =~ /^Oracle Linux (\d)\.(\d)/)
{
unless ($distname)
{
$distname = "ol$1.$2";
}
}
elsif ($desc =~ /^Final$/)
{
unless ($distname)
@ -1613,6 +1621,10 @@ sub getplatform {
{
$platform = "SL";
}
elsif ($os =~ /ol.*/)
{
$platform = "ol";
}
return $platform;
}