summaryrefslogtreecommitdiffstats
path: root/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-08-22 23:57:46 +0200
committerDirk von Suchodoletz2010-08-22 23:57:46 +0200
commit77925f17fb4c2965fcf3aca5a28d8a67462de50f (patch)
tree1cad246b415a53328b3e85baae208a8fc8bb54ac /boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm
parentMerge branch 'master' of openslx.org:openslx/core (diff)
downloadcore-77925f17fb4c2965fcf3aca5a28d8a67462de50f.tar.gz
core-77925f17fb4c2965fcf3aca5a28d8a67462de50f.tar.xz
core-77925f17fb4c2965fcf3aca5a28d8a67462de50f.zip
Avoid warning of missing modules for initramfs creation (Ubuntu).
Diffstat (limited to 'boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm')
-rw-r--r--boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm15
1 files changed, 12 insertions, 3 deletions
diff --git a/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm
index e8d6517d..2c59bbae 100644
--- a/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm
+++ b/boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm
@@ -37,9 +37,18 @@ sub applyChanges
{
my $self = shift;
my $engine = shift;
-
- $engine->_addFilteredKernelModules( qw( unix hid-bright ));
-
+
+ #if ($engine->{'distro-name'} =~ m{-([^-]+)$}) {
+ # my $distroVersion = 0.0 + $1;
+ # if ($distroVersion <= 8.10) {
+ # $engine->_addFilteredKernelModules( qw( unix hid-bright ));
+ # }
+ # else {
+ # $engine->_addFilteredKernelModules( qw( unix hid-bright af_packet uhci-hcd ohci-hcd ));
+ # }
+ #}
+ $engine->_addFilteredKernelModules( qw( unix hid-bright af_packet uhci-hcd ohci-hcd ));
+
return;
}