From 77925f17fb4c2965fcf3aca5a28d8a67462de50f Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 22 Aug 2010 23:57:46 +0200 Subject: Avoid warning of missing modules for initramfs creation (Ubuntu). --- boot-env/OpenSLX/MakeInitRamFS/Distro/Ubuntu.pm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'boot-env') 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; } -- cgit v1.2.3-55-g7522