Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48736 - get rid of modules.conf in 2.6 kernels
Summary: get rid of modules.conf in 2.6 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66504
  Show dependency tree
 
Reported: 2004-04-22 15:12 UTC by Simone Gotti (RETIRED)
Modified: 2006-05-03 19:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gotti (RETIRED) gentoo-dev 2004-04-22 15:12:40 UTC
Like you know, with 2.6 kernels the module-init-tools doesn't use anymore /etc/modules.conf but the better /etc/modprobe.conf.

Another IMPORTANT thing is that now the modules exports automatically all their symbols, so all the entries in /etc/modules.d aren't needed anymore.

The problem is that If I want to manage a PURE 2.6 system getting rid of this entries I can't do this because /etc/init.d/modules calls modules-updates that calls a script named generate-modprobe.conf, this script call the old modprobe.old with the -c option, but modprobe.old use a list of its included aliases (in the file modutils-2.4.X/util/alias.h), but this aliases are different from the aliases exported from the modules themself (that you can find in /lib/modules/`uname -r`/modules.alias): for example the bluetooth module changed his name from bluez to bluetooth so the alias is broken.

This script (generate-modprobe.conf) convert the old format of modules.conf in the new and create a modprobe.conf file.

I think that all these things aren't useful, and like a test I've removed the script and my modprobe.conf is EMPTY. All works because the modules themself exports their symbols.
A user will need an entry in modprobe.conf only for adding "options" to a module.

So I think that a better solution is to create a dir like /etc/modules.d, for example "/etc/modprobe.d" and then use something like modules-update to create a modprobe.conf file: it'll be a simple script that will cat the files in modprobe.d and create a modprobe.conf file.

Of course the /etc/init.d/modules script will check for the kernel version and then call the right script.

If anyone thinks that this can be a good idea I'll do some patches for doing this and mantain the backcompatibility with the old kernels.

Let me know!

Bye!



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-04-27 14:22:35 UTC
A debian developer (Marco d'Itri) saied to me that Debian already uses modprobe.d and a script to generate modprobe.conf (like now is done with modules.conf), so why gentoo doesn't uses it?

Bye!

Comment 2 SpanKY gentoo-dev 2004-10-09 20:34:09 UTC
gentoo has been generating modprobe.conf for a while now, that has nothing to do with this bug
Comment 3 John Nilsson 2005-06-13 10:03:31 UTC
Actully modprobe allready scans /etc/modprobe.d so there is no need to generate
modprobe.conf
Comment 4 SpanKY gentoo-dev 2005-06-13 10:43:52 UTC
sure there is ... what if a package provides a modules.d config file but not a
modprobe.d config file
Comment 5 SpanKY gentoo-dev 2006-05-03 19:23:59 UTC
baselayout-1.12.0_pre19 and better should handle this graciously