diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/list_modules.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm index f8981c046..b85b92415 100644 --- a/kernel/list_modules.pm +++ b/kernel/list_modules.pm @@ -310,9 +310,12 @@ sub filename2modname { $modname; } +sub load_default_moddeps { + load_dependencies($::prefix . '/lib/modules/' . c::kernel_version() . '/modules.dep'); +} + sub modname2filename { - load_dependencies($::prefix . '/lib/modules/' . c::kernel_version() . '/modules.dep') - if !%filenames; + load_default_moddeps() if !%filenames; $filenames{$_[0]}; } |