diff options
author | Michael Janczyk | 2012-11-07 18:48:54 +0100 |
---|---|---|
committer | Michael Janczyk | 2012-11-07 18:48:54 +0100 |
commit | 9cbaf3a23a9791bc2d2c3a7fd3516922debfb464 (patch) | |
tree | f4a31ac193db18c77a4e42700242be247f0a77fd /src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm | |
parent | plymouth plugin updated to set the theme to the target system (diff) | |
download | core-9cbaf3a23a9791bc2d2c3a7fd3516922debfb464.tar.gz core-9cbaf3a23a9791bc2d2c3a7fd3516922debfb464.tar.xz core-9cbaf3a23a9791bc2d2c3a7fd3516922debfb464.zip |
added rhel, centos, scientific linux 5 and 6.
centos and sl are depending on rhel.
simple pxe menu for default blue look.
firmwares of other nw cards are copied now.
Diffstat (limited to 'src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm')
-rw-r--r-- | src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm new file mode 100644 index 00000000..54bb2c6d --- /dev/null +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Rhel.pm @@ -0,0 +1,58 @@ +# Copyright (c) 2012 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your suggestions, praise, or complaints to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org/ +# ----------------------------------------------------------------------------- +# MakeInitRamFS::Distro::Rhel.pm +# - provides RHEL specific overrides of the MakeInitRamFS::Distro API. +# ----------------------------------------------------------------------------- +package OpenSLX::MakeInitRamFS::Distro::Rhel; + +use strict; +use warnings; + +use base qw(OpenSLX::MakeInitRamFS::Distro::Base); + +use OpenSLX::Basics; + +################################################################################ +### implementation +################################################################################ +sub new +{ + my $class = shift; + my $self = { + 'base-name' => 'rhel', + }; + return bless $self, $class; +} + +sub applyChanges +{ + my $self = shift; + my $engine = shift; + # filter modules which are part of the main kernel already + $engine->_addFilteredKernelModules( qw( af_packet hid hid-bright usbhid unix vesafb fbcon )); + + return; +} + +sub determineMatchingHwinfoVersion +{ + my $self = shift; + my $distroVersion = shift; + + my %versionMap = ( + '5.x' => '16.0', + '6.x' => '16.0', + ); + return $versionMap{$distroVersion} + || $self->SUPER::determineMatchingHwinfoVersion($distroVersion); +} + +1; |