summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-22 09:54:25 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-22 09:54:25 +0000
commit1d34683bd9967baaf21bed862578cc05bc02b346 (patch)
tree8a7c6116258a72ddeb96247a25c0fbb58fdacf24 /kernel
parenta9cfd7b60bf2115062f0b600b10ce704a848692b (diff)
downloaddrakx-backup-do-not-use-1d34683bd9967baaf21bed862578cc05bc02b346.tar
drakx-backup-do-not-use-1d34683bd9967baaf21bed862578cc05bc02b346.tar.gz
drakx-backup-do-not-use-1d34683bd9967baaf21bed862578cc05bc02b346.tar.bz2
drakx-backup-do-not-use-1d34683bd9967baaf21bed862578cc05bc02b346.tar.xz
drakx-backup-do-not-use-1d34683bd9967baaf21bed862578cc05bc02b346.zip
make modname2filename load module deps if needed (dependencies_closure will thus return results in standalone mode, but it shouldn't matter)
Diffstat (limited to 'kernel')
-rw-r--r--kernel/list_modules.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index 07d7e972e..e0fc3bce4 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -311,6 +311,8 @@ sub filename2modname {
}
sub modname2filename {
+ load_dependencies($::prefix . '/lib/modules/' . c::kernel_version() . '/modules.dep')
+ if !%filenames;
$filenames{$_[0]};
}