Bug 270741 - /sbin/kmodule ignores extra modules.
/sbin/kmodule ignores extra modules.
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: initscripts (Show other bugs)
All All
medium Severity low
: ---
: ---
Assigned To: initscripts Maintenance Team
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2007-08-31 06:24 EDT by Gerd Hoffmann
Modified: 2007-11-16 20:14 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2007-0799
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-15 11:09:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
suggested fix. (519 bytes, patch)
2007-08-31 06:27 EDT, Gerd Hoffmann
no flags Details | Diff
different patch (1.82 KB, patch)
2007-09-04 11:03 EDT, Bill Nottingham
no flags Details | Diff
fix for the fix (419 bytes, patch)
2007-09-05 06:59 EDT, Gerd Hoffmann
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0799 normal SHIPPED_LIVE initscripts bug fix update 2007-11-14 13:39:19 EST

  None (edit)
Description Gerd Hoffmann 2007-08-31 06:24:46 EDT
Description of problem:
Autoloading drivers doesn't work for external modules which are installed below

Version-Release number of selected component (if applicable):
Comment 1 Gerd Hoffmann 2007-08-31 06:27:35 EDT
Created attachment 183041 [details]
suggested fix.

Patch makes kmodule additionally look in /lib/modules/<version>/extra and
Comment 2 Gerd Hoffmann 2007-08-31 12:11:22 EDT
Note: this change is needed for the xen pv-on-hvm drivers.
Comment 3 Bill Nottingham 2007-08-31 14:06:06 EDT
We don't rebuild these modules for each kernel?
Comment 4 Gerd Hoffmann 2007-09-03 03:26:53 EDT
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.
Comment 5 Bill Nottingham 2007-09-04 11:03:55 EDT
Created attachment 186241 [details]
different patch

Does this work for you? It's a little bigger patch, but it's also more
Comment 6 Gerd Hoffmann 2007-09-05 06:59:08 EDT
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.
Comment 7 Bill Nottingham 2007-09-05 14:05:47 EDT
devel ack on the patch. Exception is not for me to decide. :)
Comment 10 Bill Nottingham 2007-09-10 14:09:12 EDT
Added in 7.93.31.EL-2.
Comment 15 errata-xmlrpc 2007-11-15 11:09:58 EST
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.


Note You need to log in before you can comment on or make changes to this bug.