diff options
author | Sebastian | 2011-06-02 17:27:43 +0200 |
---|---|---|
committer | Sebastian | 2011-06-02 17:27:43 +0200 |
commit | 95da2c40e364b4d2dc68aed83d332c8eed6d2030 (patch) | |
tree | 0196e718f4981385c92da3da76f391cbe4a1c890 /src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm | |
parent | ... (diff) | |
download | core-95da2c40e364b4d2dc68aed83d332c8eed6d2030.tar.gz core-95da2c40e364b4d2dc68aed83d332c8eed6d2030.tar.xz core-95da2c40e364b4d2dc68aed83d332c8eed6d2030.zip |
rename distro versions
Diffstat (limited to 'src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm')
-rw-r--r-- | src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm | 60 |
1 files changed, 60 insertions, 0 deletions
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..e4aef1ca --- /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; |