summaryrefslogtreecommitdiffstats
path: root/src/boot-env
diff options
context:
space:
mode:
authorDirk von Suchodoletz2011-06-02 13:16:20 +0200
committerDirk von Suchodoletz2011-06-02 13:16:20 +0200
commited16b0309962becdc8392b52da420a4a79af03d9 (patch)
treee11613c8b23f1c783c97e87d6cd2767f684a88e7 /src/boot-env
parentStarting LinuxMint (10 later 11) integration. It heavily bases on Ubuntu ... (diff)
downloadcore-ed16b0309962becdc8392b52da420a4a79af03d9.tar.gz
core-ed16b0309962becdc8392b52da420a4a79af03d9.tar.xz
core-ed16b0309962becdc8392b52da420a4a79af03d9.zip
Some more LinuxMint stuff ...
Diffstat (limited to 'src/boot-env')
-rw-r--r--src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm60
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..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;