summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot-env/OpenSLX/MakeInitRamFS/Distro/Debian.pm7
-rw-r--r--boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm1
-rw-r--r--boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu_9.pm36
3 files changed, 42 insertions, 2 deletions
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;