From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 12BAB13832E for ; Tue, 16 Aug 2016 23:49:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BCD021C16C; Tue, 16 Aug 2016 23:49:43 +0000 (UTC) Received: from tsukuyomi.43-1.org (tsukuyomi.43-1.org [188.40.248.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6651921C012 for ; Tue, 16 Aug 2016 23:49:42 +0000 (UTC) From: Matthias Maier To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: /etc/init.d/modules loading modules defined in files In-Reply-To: <20160816232009.GA16393@whubbs1.gaikai.biz> (William Hubbs's message of "Tue, 16 Aug 2016 18:20:09 -0500") References: <20160816232009.GA16393@whubbs1.gaikai.biz> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Date: Tue, 16 Aug 2016 18:49:12 -0500 Message-ID: <87a8gctguf.fsf@kestrel.kyomu.43-1.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: 1fe3da67-d075-4bb2-8b71-fdc3a2202b54 X-Archives-Hash: 3d4cb459440c42151ed1a20e0520ec05 --=-=-= Content-Type: text/plain On Tue, Aug 16, 2016, at 18:20 CDT, William Hubbs wrote: > All, > > I have received a request to implement a feature in OpenRC to allow > multiple software packages to drop files in a directory, /etc/modules.d > for example, which would define modules the /etc/init.d/modules script > would load. What about /etc/modules-load.d containing various files that list one module to load per line? With this, OpenRC's behavior would be compatible with systemd-modules-load [1]. Best, Matthias [1] To quote systemd's manpage: NAME modules-load.d - Configure kernel modules to load at boot SYNOPSIS /etc/modules-load.d/*.conf /run/modules-load.d/*.conf /usr/lib/modules-load.d/*.conf DESCRIPTION systemd-modules-load.service(8) reads files from the above directories which contain kernel modules to load during boot in a static list. Each configuration file is named in the style of /etc/modules-load.d/program.conf. Note that it is usually a better idea to rely on the automatic module loading by PCI IDs, USB IDs, DMI IDs or similar triggers encoded in the kernel modules themselves instead of static configuration like this. In fact, most modern kernel modules are prepared for automatic loading already. CONFIGURATION FORMAT The configuration files should simply contain a list of kernel module names to load, separated by newlines. Empty lines and lines whose first non-whitespace character is # or ; are ignored. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 iQIcBAEBCgAGBQJXs6Z4AAoJELhOzYlK7nn/KxoP/0EnlnSftORmKTl9wzX6YA+B JaO3wpv8gP5IrCrt2o5M1StOd/c78ALbt+K/6zUQZCrp6PTB6WhK7hb2PYhussu+ PywOlqOtwvrqkPSgE4uW18lx2CqS5ho6BcFFgU7z6oFrZ18Nlwb2jIPrN18SvuFH o+oWndJrtjVxY7kKD4cgEwrCjBHSQMxJ+4yCsJXTWp9gDhKjNI2W+2bvE8A9IheM y3z7gUB36mIz58G9JLLk/EA4ys5RF4+GZ9DvtGxBH3nNcteoaRmc7P3Q5aHPDQgC JSHAmlP3tCqTNt1VXkRx6uEeYDWi1PYGwWGVYxUxxyG9DcZ1d1ePghfpQB6RpP8N TDOUqYB+7/EdFAikEhFVDM4tKlouSqrW5N7fbtp2HMgZ4OTHK9SGPWyxBlRe5Fc3 OTQtkBQWVsWKPHOzgOa9gbcmDAu4tyJq5fTvjzLPOxAynYrt+Vlcbgf3PH5NSO/R DzEn7vg3gphAQbvsDP9O2zhkWF8TZdnrKKwb2/USQX42+pYE4qouRjrJOEvExOG/ PCPweMcTIC05Vo/RTVEkiJk6gv6DCxNmF8Y8uFamQoHE+2aYXcC0fY1jB5VSaLHh oO2R874GR8VffU5qCjyQAvndjTbfERF3W20z16R8xVK4OB/rLTF2w2YrS5EcqL8s G4AV0V7Ilam2MiHhUdq8 =euOH -----END PGP SIGNATURE----- --=-=-=--