summaryrefslogtreecommitdiffstats
path: root/kernel/modules.pl
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-21 12:40:48 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-21 12:40:48 +0000
commit56cedc11ac5cd62f850676457a72f677cefec6de (patch)
treec33ce28145c95e2b18a5b015ecbcb66f95d236b2 /kernel/modules.pl
parent92443341b5fbdae7d14e7313c8f733fd91bd96e3 (diff)
downloaddrakx-backup-do-not-use-56cedc11ac5cd62f850676457a72f677cefec6de.tar
drakx-backup-do-not-use-56cedc11ac5cd62f850676457a72f677cefec6de.tar.gz
drakx-backup-do-not-use-56cedc11ac5cd62f850676457a72f677cefec6de.tar.bz2
drakx-backup-do-not-use-56cedc11ac5cd62f850676457a72f677cefec6de.tar.xz
drakx-backup-do-not-use-56cedc11ac5cd62f850676457a72f677cefec6de.zip
use category2modules whenever possible (i.e. when module dependencies are available)
Diffstat (limited to 'kernel/modules.pl')
-rw-r--r--kernel/modules.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl
index 49ce8efb9..6863af44e 100644
--- a/kernel/modules.pl
+++ b/kernel/modules.pl
@@ -37,7 +37,7 @@ my ($f, @para) = @ARGV;
$::{$f}->(@para);
sub modules() {
- map { list_modules::category2modules_raw($_) } split(' ', $images_cat);
+ map { category2modules($_) } split(' ', $images_cat);
}
sub remove_unneeded_modules {
@@ -49,7 +49,7 @@ sub remove_unneeded_modules {
my @all = modules();
my @all_with_deps = map { dependencies_closure($_) } @all;
- my %wanted_modules = map { ("$_.ko.gz" => 1) } @all_with_deps;
+ my %wanted_modules = map { (list_modules::modname2filename($_) . ".ko.gz" => 1) } @all_with_deps;
foreach (all("all.kernels/$kern_ver/modules")) {
$wanted_modules{$_} or unlink "all.kernels/$kern_ver/modules/$_";
}