From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_24_48, DMARC_MISSING,FREEMAIL_FROM,FROM_LOCAL_DIGITS,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS,INVALID_DATE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=no autolearn_force=no version=4.0.0 Received: from mailout03.sul.t-online.com ([194.25.134.81]) by cvs.gentoo.org with esmtp (Exim 3.22 #1) id 14QMS4-0000gI-00 for gentoo-dev@gentoo.org; Tue, 06 Feb 2001 21:43:33 -0700 Received: from fwd03.sul.t-online.com by mailout03.sul.t-online.com with smtp id 14QMSX-0004wB-01; Wed, 07 Feb 2001 05:44:01 +0100 Received: from helios.bagwan (320095285153-0001@[62.155.143.145]) by fwd03.sul.t-online.com with smtp id 14QMSO-19tjpwC; Wed, 7 Feb 2001 05:43:52 +0100 Received: (qmail 16902 invoked by uid 0); 7 Feb 2001 07:25:08 -0000 Received: from sadchitananda2.bagwan (HELO gottinger.de) (achim@192.168.2.1) by helios.bagwan with SMTP; 7 Feb 2001 07:25:08 -0000 Message-ID: <3A80CC65.2BC0D45C@gottinger.de> From: 320095285153-0001@t-online.de (Achim Gottinger) X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gentoo-dev@gentoo.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320095285153-0001@t-dialin.net Subject: [gentoo-dev] Kernel-Modules Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@gentoo.org X-Reply-To: achim@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Tue Feb 6 21:44:01 2001 X-Original-Date: Wed, 07 Feb 2001 05:17:42 +0100 X-Archives-Salt: 501b3dd5-8db1-45ce-8892-f83169fac662 X-Archives-Hash: 3562d13cfe0910de21584907696d8310 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 #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~