public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Kernel-Modules
@ 2001-02-06 21:44 Achim Gottinger
  2001-02-07 16:00 ` drobbins
  0 siblings, 1 reply; 2+ messages in thread
From: Achim Gottinger @ 2001-02-06 21:44 UTC (permalink / raw
  To: gentoo-dev

Hi again,

Currently the script /etc/rc.d/config/modules automatically generates
modules.conf
on startup as /etc/modules/{kernelversion} if that file does not exist.
If /etc/modules/{kernelversion} is newer than /etc/modules.conf it
copies /etc/modules/{kernelversion} to
/etc/modules.conf and only in this case it runs depmod -a.
I'm not sure why but it sometimes fails. Another bad thing about that is
that it overwrites /etc/modules.conf

I give you a short information how we want to handle module
configuration in the future.

On each boot /etc/modules/{kernelversion} get generated.
Then the script scans /etc/modules for files that match modules.*.
Then it generates /etc/modules.conf from {kernelversion} and adds the
/etc/modules/modules.* files to modules.conf
depmod -a runs every time.
The modules.* files in /etc/moules can include preprocessor commands
like

#IfModule ppp.o
<definitions here>
#EndIfModule

So you can configure your modules dependend on the existance of a
module.
Something similar is planned for /etc/modules.devfs

You should use /etc/modules/modules.conf for your private declarations.

With this method we can add modules configurations from other packages.
For example pppd requires some special aliases that could be added
automatic this way.

Additionally I will add a script that regenerates /etc/modules.conf in
the way described above and runs depmod -a
after that.
This script can be used from the commandline or from within packages
pkg_postinst functions.

This way of handling should make it in rc4.

Sould we make this method triggerable by a line in
/etc/rc.d/config/basic ?

MODULES_CONF="yes" <-> MODULES_CONF="no"

Comments please

achim~





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-07 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-06 21:44 [gentoo-dev] Kernel-Modules Achim Gottinger
2001-02-07 16:00 ` drobbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox