public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: 320095285153-0001@t-online.de (Achim Gottinger)
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Kernel-Modules
Date: Tue Feb  6 21:44:01 2001	[thread overview]
Message-ID: <3A80CC65.2BC0D45C@gottinger.de> (raw)

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~





             reply	other threads:[~2001-02-07  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-06 21:44 Achim Gottinger [this message]
2001-02-07 16:00 ` [gentoo-dev] Kernel-Modules drobbins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A80CC65.2BC0D45C@gottinger.de \
    --to=320095285153-0001@t-online.de \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox