From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JdDuW-0002SG-6f for garchives@archives.gentoo.org; Sun, 23 Mar 2008 00:18:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90062E0749; Sun, 23 Mar 2008 00:18:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 448CBE0749 for ; Sun, 23 Mar 2008 00:18:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6A6036787F for ; Sun, 23 Mar 2008 00:18:01 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] update-modules and modules.d -> modprobe.d Date: Sat, 22 Mar 2008 20:20:17 -0400 User-Agent: KMail/1.9.7 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="nextPart15295400.C3Q6ebirKK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803222020.17591.vapier@gentoo.org> X-Archives-Salt: 1a93fd88-7bcc-4a29-8371-f2cd45dc9496 X-Archives-Hash: 254dcc9705203d8e4515fbcb7a44961d --nextPart15295400.C3Q6ebirKK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline just a little background for the (bi)curious modutils-2.4.x provided a way for the user to customize=20 things: /etc/modules.conf. here users could control aliases and options an= d=20 do all sort of neat tricks when loading/unloading modules. the problem was= =20 that it didnt allow for packages to easily provide their own little snippet= s. =20 should all those packages get folded into modules.conf ? should you just=20 grep/cat the file onto modules.conf ? it's a nightmare. so distros invented /etc/modules.d/. now packages could manage their littl= e=20 pieces in this directory all by themselves. the only problem was that=20 modutils knew nothing of this. it only knew modules.conf. so distros had = to=20 write a little bit of glue where the conf file would be autogenerated by al= l=20 the pieces in modules.d. life, while better, is still kind of a pain. when module-init-tools-2.6.x came out, peeps had learned from the past. th= is=20 means they changed two things: they included native support for a modprobe.= d=20 directory and they removed support for certain syntax deemed a pita. this= =20 syntax change is why we have a new modprobe.d instead of just using the old= =20 modules.d. however, the behavior is this: if /etc/modprobe.conf exists, us= e=20 that, otherwise scan the modprobe.d directory. now distros have yet another problem. they've got packages that provide ol= d=20 snippets in /etc/modules.d/ and new snippets in /etc/modprobe.d/. so in=20 comes the lube again. we automatically combine these directories and form = an=20 old-compatible modules.conf file and a new compatible modprobe.conf. what= =20 would be ideal is for all of this lube to go away. thus the latest=20 update-modules script whines like a brat whenever a file is found=20 in /etc/modules.d/. by being proactive here and scuttling all the modules.= d=20 pieces, we will be left with only /etc/modprobe.d/. that means no more=20 annoying messages during boot "Updating modules.xxxx ..." which serves to=20 slow things down. on my amd64 system with very few files, that still takes= =20 ~2 friggin seconds. less stuff to do at boot =3D> faster boot time =3D> maintainers get a whiny= notice =2Dmike --nextPart15295400.C3Q6ebirKK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iQIVAwUAR+WiQUFjO5/oN/WBAQLQkQ/9FZotzNARt04S6NhLyvSPPEEYT6aLlgp8 +O1kIUPR8fZ3EN8WhFjttEZZ97JctBvNaStvM7eIh4/D+ZAAkTtRelqYvNmFY9FP IXxgHQjiQnpFLnnHLKDvoSbvyWhrsHEsbftdEvxH/tHeYh7YIB8X9DtPEUJejvG6 5d1hmvBOxbtbX9Ittz/d+fs71AkUMxn+FK+yRJXEo1xLjUsPiL/L8Lzri5Zl88jT em1ZxZ4lPkFmOcHR/khcQYG91K24USPRZkSjxRGH51yT84H2BBcNxHL78V2xJHVv XUDDaqNuMiKEfuNNnfsHnNjbyUsFL2CEzTimbRpvH6QHm8Crr0hHR/Fn10HOLbkK 2Nb1hKCKbVjHx28iszE7+SfTcJiRG41w4zOGRh9gPQex/KQtMYBIP3+11UYl3mwQ vP4a/YM9CBeiyeBfEZcvSjfYjw6WCt4nOw/tjdXHvW9/7JzJx+Qg1YP099OPDmJy bD9UhbhWgVtSB/vsGMhP1IgX1tJu61rlkRURw3NGq2jyI9axrmcUGrn2wRDE46VH X4NsPBO7qtPg6M4qYZN0HRT+2e/X90WbgPQEMpz2rQWcvXHQ5y9F0ihVxtapNrYg 24cBhbpSzG6mOM2Tg+zi3aagvpiXLOaCltiGDJCrSTec9s46PcoFzRZRODc2jSZR LlQJTKEXhAM= =BRAI -----END PGP SIGNATURE----- --nextPart15295400.C3Q6ebirKK-- -- gentoo-dev@lists.gentoo.org mailing list