Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udev-197 USE=kmod
Date: Sun, 27 Jan 2013 21:02:11
Message-Id: CADPrc8369ngcMWeawPBgTezo2tNEt3qhLLyZpO2wWWgX1Fo+hQ@mail.gmail.com
In Reply to: Re: [gentoo-user] udev-197 USE=kmod by Florian Philipp
1 On Sun, Jan 27, 2013 at 4:30 AM, Florian Philipp <lists@×××××××××××.net> wrote:
2 > Am 27.01.2013 03:24, schrieb Canek Peláez Valdés:
3 >> On Sat, Jan 26, 2013 at 6:15 PM, Florian Philipp <lists@×××××××××××.net> wrote:
4 >>> Hi list!
5 >>>
6 >>> Quick question: If I deactivate the kmod use flag in udev and keep
7 >>> sys-apps/module-init-tools, does udev still load modules or is kmod a
8 >>> required flag for that?
9 >>
10 >> I'm not 100% sure, but I don't think so. The git repository has not a
11 >> single instance of the strings "modprobe" or "insmod", apparently the
12 >> only way to load modules in udev is to use kmod. I think the kmod
13 >> configure option (which is the one the USE flag activate/deactivate),
14 >> is for systems where all the modules are built-in, like embedded ones.
15 >>
16 >
17 > Okay. I thought I've heard about some dev patching udev to work with
18 > modprobe at one point. Could be mistaken or outdated, though.
19
20 The patches in the ebuild don't include anything to use modprobe:
21
22 http://dev.gentoo.org/~williamh/dist/udev-197-patches-1.tar.bz2
23
24 >> Unless udev has no other means to load modules, I think disabling kmod
25 >> assumes then that all the modules are built-in. And if you use
26 >> modules, may I ask why you would prefer module-init-tools over kmod?
27 >> Specially when the later is a drop-in, better supported replacement?
28 >>
29 >
30 > Is it really a drop-in? I was under the impression that for example
31 > `modprobe -l` is not implemented (mentioned in a comment on the eudev
32 > fork on LWN). I guess that's outdated as well.
33
34 No, modprobe -l is not supported, but it's trivially to emulate, and
35 the option was already deprecated in module-init-tools. From the kmod
36 README:
37
38 "kmod-modprobe gained several features to be a 1:1 replacement for
39 modprobe. The only missing things are the options '--showconfig' and
40 '-t / -l'. These last ones have been deprecated long ago and they will
41 be removed from modprobe. A lot of effort has been put on
42 kmod-modprobe to ensure it maintains compabitility with modprobe."
43
44 As you yourself commented, using an alias with find more than enough.
45
46 Regards.
47 --
48 Canek Peláez Valdés
49 Posgrado en Ciencia e Ingeniería de la Computación
50 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] udev-197 USE=kmod Florian Philipp <lists@×××××××××××.net>