From ed16b0309962becdc8392b52da420a4a79af03d9 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 2 Jun 2011 13:16:20 +0200 Subject: Some more LinuxMint stuff ... --- .../OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm (limited to 'src/boot-env') diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm new file mode 100644 index 00000000..b813c91b --- /dev/null +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm @@ -0,0 +1,60 @@ +# Copyright (c) 2011 - 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::LinuxMint.pm +# - provides LinuxMint-specific overrides of the MakeInitRamFS::Distro API. +# ----------------------------------------------------------------------------- +package OpenSLX::MakeInitRamFS::Distro::LinuxMint; + +use strict; +use warnings; + +use base qw(OpenSLX::MakeInitRamFS::Distro::Base); + +use OpenSLX::Basics; + +################################################################################ +### implementation +################################################################################ +sub new +{ + my $class = shift; + my $self = { + 'base-name' => 'linuxmint', + }; + return bless $self, $class; +} + +# filter out modules not present (e.g. because compiled into the kernel) +sub applyChanges +{ + my $self = shift; + my $engine = shift; + + $engine->_addFilteredKernelModules( qw( unix hid-bright af_packet uhci-hcd ohci-hcd )); + + return; +} + +sub determineMatchingHwinfoVersion +{ + my $self = shift; + my $distroVersion = shift; + + # Please check, if correct + my %versionMap = ( + '10' => '16.0', + '11' => '16.0', + ); + return $versionMap{$distroVersion} + || $self->SUPER::determineMatchingHwinfoVersion($distroVersion); +} + +1; -- cgit v1.2.3-55-g7522