Bug 1962 - Difficult to use non-obvious /lib/modules/<foo> module directories
Difficult to use non-obvious /lib/modules/<foo> module directories
Product: Red Hat Raw Hide
Classification: Retired
Component: modutils (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Cristian Gafton
Depends On:
  Show dependency treegraph
Reported: 1999-04-03 04:33 EST by Chris Siebenmann
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-04-07 13:02:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chris Siebenmann 1999-04-03 04:33:31 EST
The Rawhide modutils-2.1.121 appears to be compiled to
use only
	/lib/modules/`uname -r`
and	/lib/modules
as the search path for modules, unlike the RedHat 5.2
modutils, which seem to have been compiled to check
/lib/modules/preferred as well (and first, from the
looks of things).

 The net effect of this change seems to be to make it
practically impossible to use the old scheme where
/lib/modules/preferred was symlinked to the right
place. I believe this is undesirable; I don't want
to be frobbing EXTRAVERSION in kernel Makefiles for
every variant I test-compile (among other things,
this will make patches from kernel version to kernel
version fail to apply cleanly!).

 I suggest that RedHat revert/enhance/whatever modutils
to check /lib/modules/preferred again.
Comment 1 Cristian Gafton 1999-04-05 19:47:59 EDT
You can modprobe modules only against the running kernel, and now we
have a very sure way of identifying the running kernel, so the
preferred hack is no longer needed.
Comment 2 Chris Siebenmann 1999-04-06 16:09:59 EDT
If the preferred hack is no longer supposed to be there at all,
you might want to delete the stanza in /etc/rc.d/rc.sysinit that
falls back to it.

 Personally, I think that relying on uname -r/EXTRAVERSION is a
bit fragile in an environment where people may build their own
kernels, but clearly RedHat disagrees.
Comment 3 Bill Nottingham 1999-04-06 18:30:59 EDT
it has been removed in the latest initscripts (removed about 3/29
or so).
Comment 4 Cristian Gafton 1999-04-07 13:02:59 EDT
Relying on EXTRAVERSIOn is a whole lot more stable than the previous
preffered hack. This is what EXTRAVERSION is for and it is not
terribly difficult to change that value when compiling a customized

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