summaryrefslogtreecommitdiffstats
path: root/boot-env
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-29 23:54:38 +0200
committerDirk von Suchodoletz2009-03-29 23:54:38 +0200
commitbfd88a0b6c724ad64acead7661f970aeeb510956 (patch)
tree9a58fba1e74310661e09ef6333b37dc93f4975a0 /boot-env
parentUbuntu 9.04 "support" (inital to check for the howto/documentation, (diff)
downloadcore-bfd88a0b6c724ad64acead7661f970aeeb510956.tar.gz
core-bfd88a0b6c724ad64acead7661f970aeeb510956.tar.xz
core-bfd88a0b6c724ad64acead7661f970aeeb510956.zip
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
Diffstat (limited to 'boot-env')
-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;