From bfd88a0b6c724ad64acead7661f970aeeb510956 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 29 Mar 2009 21:54:38 +0000 Subject: Trying to add Ubuntu-9.04 (for the sake of documentation in the wiki), but some problems here ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2770 95ad53e4-c205-0410-b2fa-d234c58c8868 --- boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm | 7 +++-- boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm | 1 + boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm | 36 +++++++++++++++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm (limited to 'boot-env') diff --git a/boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm b/boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm index 30ad4b0d..017783ee 100644 --- a/boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm +++ b/boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm @@ -47,11 +47,14 @@ sub determineMatchingHwinfoVersion my $self = shift; my $distroVersion = shift; - # TODO: fill this map (see Suse.pm for an example) + # to be checked my %versionMap = ( + '3.0' => '13.11', + '4.0' => '14.19', + '5.0' => '15.3', ); return $versionMap{$distroVersion} || $self->SUPER::determineMatchingHwinfoVersion($distroVersion); } -1; \ No newline at end of file +1; diff --git a/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm index 8f77c9bd..7041f688 100644 --- a/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm +++ b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm @@ -32,6 +32,7 @@ sub new return bless $self, $class; } +# filter out modules not present (e.g. because compiled into the kernel) sub applyChanges { my $self = shift; diff --git a/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm new file mode 100644 index 00000000..033ff644 --- /dev/null +++ b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm @@ -0,0 +1,36 @@ +# Copyright (c) 2009 - 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::Ubuntu_9.pm +# - provides Ubuntu-9.X-specific overrides of the MakeInitRamFS::Distro API. +# ----------------------------------------------------------------------------- +package OpenSLX::MakeInitRamFS::Distro::Ubuntu_9; + +use strict; +use warnings; + +use base qw(OpenSLX::MakeInitRamFS::Distro::Ubuntu); + +use OpenSLX::Basics; + +################################################################################ +### implementation +################################################################################ +sub applyChanges +{ + my $self = shift; + my $engine = shift; + + $engine->_addFilteredKernelModules( qw( af_packet unix hid )); + + return; +} + +1; -- cgit v1.2.3-55-g7522