public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] udev-197 USE=kmod
@ 2013-01-27  0:15 Florian Philipp
  2013-01-27  2:24 ` Canek Peláez Valdés
  0 siblings, 1 reply; 7+ messages in thread
From: Florian Philipp @ 2013-01-27  0:15 UTC (permalink / raw
  To: Gentoo User List

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

Hi list!

Quick question: If I deactivate the kmod use flag in udev and keep
sys-apps/module-init-tools, does udev still load modules or is kmod a
required flag for that?

Thanks in advance!
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27  0:15 [gentoo-user] udev-197 USE=kmod Florian Philipp
@ 2013-01-27  2:24 ` Canek Peláez Valdés
  2013-01-27 10:30   ` Florian Philipp
  0 siblings, 1 reply; 7+ messages in thread
From: Canek Peláez Valdés @ 2013-01-27  2:24 UTC (permalink / raw
  To: gentoo-user

On Sat, Jan 26, 2013 at 6:15 PM, Florian Philipp <lists@binarywings.net> wrote:
> Hi list!
>
> Quick question: If I deactivate the kmod use flag in udev and keep
> sys-apps/module-init-tools, does udev still load modules or is kmod a
> required flag for that?

I'm not 100% sure, but I don't think so. The git repository has not a
single instance of the strings "modprobe" or "insmod", apparently the
only way to load modules in udev is to use kmod. I think the kmod
configure option (which is the one the USE flag activate/deactivate),
is for systems where all the modules are built-in, like embedded ones.

Unless udev has no other means to load modules, I think disabling kmod
assumes then that all the modules are built-in. And if you use
modules, may I ask why you would prefer module-init-tools over kmod?
Specially when the later is a drop-in, better supported replacement?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27  2:24 ` Canek Peláez Valdés
@ 2013-01-27 10:30   ` Florian Philipp
  2013-01-27 11:33     ` Matthias Hanft
  2013-01-27 21:01     ` Canek Peláez Valdés
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Philipp @ 2013-01-27 10:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

Am 27.01.2013 03:24, schrieb Canek Peláez Valdés:
> On Sat, Jan 26, 2013 at 6:15 PM, Florian Philipp <lists@binarywings.net> wrote:
>> Hi list!
>>
>> Quick question: If I deactivate the kmod use flag in udev and keep
>> sys-apps/module-init-tools, does udev still load modules or is kmod a
>> required flag for that?
> 
> I'm not 100% sure, but I don't think so. The git repository has not a
> single instance of the strings "modprobe" or "insmod", apparently the
> only way to load modules in udev is to use kmod. I think the kmod
> configure option (which is the one the USE flag activate/deactivate),
> is for systems where all the modules are built-in, like embedded ones.
> 

Okay. I thought I've heard about some dev patching udev to work with
modprobe at one point. Could be mistaken or outdated, though.

> Unless udev has no other means to load modules, I think disabling kmod
> assumes then that all the modules are built-in. And if you use
> modules, may I ask why you would prefer module-init-tools over kmod?
> Specially when the later is a drop-in, better supported replacement?
> 

Is it really a drop-in? I was under the impression that for example
`modprobe -l` is not implemented (mentioned in a comment on the eudev
fork on LWN). I guess that's outdated as well.

Thanks,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27 10:30   ` Florian Philipp
@ 2013-01-27 11:33     ` Matthias Hanft
  2013-01-27 13:55       ` Florian Philipp
  2013-01-27 21:01     ` Canek Peláez Valdés
  1 sibling, 1 reply; 7+ messages in thread
From: Matthias Hanft @ 2013-01-27 11:33 UTC (permalink / raw
  To: gentoo-user

Florian Philipp wrote:
> 
> Is it really a drop-in? I was under the impression that for example
> `modprobe -l` is not implemented (mentioned in a comment on the eudev
> fork on LWN). I guess that's outdated as well.

I'm using kmod's modprobe, and there is *no* "-l" option.

-Matt



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27 11:33     ` Matthias Hanft
@ 2013-01-27 13:55       ` Florian Philipp
  0 siblings, 0 replies; 7+ messages in thread
From: Florian Philipp @ 2013-01-27 13:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Am 27.01.2013 12:33, schrieb Matthias Hanft:
> Florian Philipp wrote:
>>
>> Is it really a drop-in? I was under the impression that for example
>> `modprobe -l` is not implemented (mentioned in a comment on the eudev
>> fork on LWN). I guess that's outdated as well.
> 
> I'm using kmod's modprobe, and there is *no* "-l" option.
> 
> -Matt
> 

Hmm, any replacement in sight?

Otherwise I guess I'll use an alias like this:
alias modprobe-l="find \"/lib64/modules/\$(uname -r)\" -name '*.ko'
-printf '%P\n'"


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27 10:30   ` Florian Philipp
  2013-01-27 11:33     ` Matthias Hanft
@ 2013-01-27 21:01     ` Canek Peláez Valdés
  2013-01-27 22:45       ` Florian Philipp
  1 sibling, 1 reply; 7+ messages in thread
From: Canek Peláez Valdés @ 2013-01-27 21:01 UTC (permalink / raw
  To: gentoo-user

On Sun, Jan 27, 2013 at 4:30 AM, Florian Philipp <lists@binarywings.net> wrote:
> Am 27.01.2013 03:24, schrieb Canek Peláez Valdés:
>> On Sat, Jan 26, 2013 at 6:15 PM, Florian Philipp <lists@binarywings.net> wrote:
>>> Hi list!
>>>
>>> Quick question: If I deactivate the kmod use flag in udev and keep
>>> sys-apps/module-init-tools, does udev still load modules or is kmod a
>>> required flag for that?
>>
>> I'm not 100% sure, but I don't think so. The git repository has not a
>> single instance of the strings "modprobe" or "insmod", apparently the
>> only way to load modules in udev is to use kmod. I think the kmod
>> configure option (which is the one the USE flag activate/deactivate),
>> is for systems where all the modules are built-in, like embedded ones.
>>
>
> Okay. I thought I've heard about some dev patching udev to work with
> modprobe at one point. Could be mistaken or outdated, though.

The patches in the ebuild don't include anything to use modprobe:

http://dev.gentoo.org/~williamh/dist/udev-197-patches-1.tar.bz2

>> Unless udev has no other means to load modules, I think disabling kmod
>> assumes then that all the modules are built-in. And if you use
>> modules, may I ask why you would prefer module-init-tools over kmod?
>> Specially when the later is a drop-in, better supported replacement?
>>
>
> Is it really a drop-in? I was under the impression that for example
> `modprobe -l` is not implemented (mentioned in a comment on the eudev
> fork on LWN). I guess that's outdated as well.

No, modprobe -l is not supported, but it's trivially to emulate, and
the option was already deprecated in module-init-tools. From the kmod
README:

"kmod-modprobe gained several features to be a 1:1 replacement for
modprobe. The only missing things are the options '--showconfig' and
'-t / -l'. These last ones have been deprecated long ago and they will
be removed from modprobe. A lot of effort has been put on
kmod-modprobe to ensure it maintains compabitility with modprobe."

As you yourself commented, using an alias with find more than enough.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] udev-197 USE=kmod
  2013-01-27 21:01     ` Canek Peláez Valdés
@ 2013-01-27 22:45       ` Florian Philipp
  0 siblings, 0 replies; 7+ messages in thread
From: Florian Philipp @ 2013-01-27 22:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2593 bytes --]

Am 27.01.2013 22:01, schrieb Canek Peláez Valdés:
> On Sun, Jan 27, 2013 at 4:30 AM, Florian Philipp <lists@binarywings.net> wrote:
>> Am 27.01.2013 03:24, schrieb Canek Peláez Valdés:
>>> On Sat, Jan 26, 2013 at 6:15 PM, Florian Philipp <lists@binarywings.net> wrote:
>>>> Hi list!
>>>>
>>>> Quick question: If I deactivate the kmod use flag in udev and keep
>>>> sys-apps/module-init-tools, does udev still load modules or is kmod a
>>>> required flag for that?
>>>
>>> I'm not 100% sure, but I don't think so. The git repository has not a
>>> single instance of the strings "modprobe" or "insmod", apparently the
>>> only way to load modules in udev is to use kmod. I think the kmod
>>> configure option (which is the one the USE flag activate/deactivate),
>>> is for systems where all the modules are built-in, like embedded ones.
>>>
>>
>> Okay. I thought I've heard about some dev patching udev to work with
>> modprobe at one point. Could be mistaken or outdated, though.
> 
> The patches in the ebuild don't include anything to use modprobe:
> 
> http://dev.gentoo.org/~williamh/dist/udev-197-patches-1.tar.bz2
> 

Thanks for looking!

>>> Unless udev has no other means to load modules, I think disabling kmod
>>> assumes then that all the modules are built-in. And if you use
>>> modules, may I ask why you would prefer module-init-tools over kmod?
>>> Specially when the later is a drop-in, better supported replacement?
>>>
>>
>> Is it really a drop-in? I was under the impression that for example
>> `modprobe -l` is not implemented (mentioned in a comment on the eudev
>> fork on LWN). I guess that's outdated as well.
> 
> No, modprobe -l is not supported, but it's trivially to emulate, and
> the option was already deprecated in module-init-tools. From the kmod
> README:
> 
> "kmod-modprobe gained several features to be a 1:1 replacement for
> modprobe. The only missing things are the options '--showconfig' and
> '-t / -l'. These last ones have been deprecated long ago and they will
> be removed from modprobe. A lot of effort has been put on
> kmod-modprobe to ensure it maintains compabitility with modprobe."
> 
> As you yourself commented, using an alias with find more than enough.
> 
> Regards.


Yeah, easy enough when you know your way around shell scripts and know
where to look. In my opinion, it is still kind of stupid to remove a
useful feature with no replacement.

Hmm, maybe it's time to write a better replacement. Something more like
eix, just for modules ...

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-27 22:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-27  0:15 [gentoo-user] udev-197 USE=kmod Florian Philipp
2013-01-27  2:24 ` Canek Peláez Valdés
2013-01-27 10:30   ` Florian Philipp
2013-01-27 11:33     ` Matthias Hanft
2013-01-27 13:55       ` Florian Philipp
2013-01-27 21:01     ` Canek Peláez Valdés
2013-01-27 22:45       ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox