Red Hat Bugzilla – Bug 270741
/sbin/kmodule ignores extra modules.
Last modified: 2007-11-16 20:14:56 EST
Description of problem:
Autoloading drivers doesn't work for external modules which are installed below
Version-Release number of selected component (if applicable):
Created attachment 183041 [details]
Patch makes kmodule additionally look in /lib/modules/<version>/extra and
Note: this change is needed for the xen pv-on-hvm drivers.
We don't rebuild these modules for each kernel?
We probably can rebuild them for each kernel, not sure yet what the process will
be. But .../extra will be needed anyway for it to work.
While being at it I've added weak-modules too to avoid surprises because you
might have external modules in both directories, so if we search one we should
search the other one too.
Created attachment 186241 [details]
Does this work for you? It's a little bigger patch, but it's also more
Created attachment 187261 [details]
fix for the fix
Works after putting back in the uname() syscall.
For some strange reason it works the first time isAvailable() is called,
probably pure luck that the data from a previous uname() syscall has the
correct location on the stack and wasn't overwritten yet.
devel ack on the patch. Exception is not for me to decide. :)
Added in 7.93.31.EL-2.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.