1 |
On Wed, Jan 4, 2012 at 7:58 AM, Arun Raghavan <ford_prefect@g.o> wrote: |
2 |
> Does mdev support all the rules we have in /lib/udev/rules.d/? The |
3 |
> Internet is surprisingly mute on this subject, but a quick grep |
4 |
> through the busybox source doesn't turn up anything that suggests that |
5 |
> it might. |
6 |
|
7 |
I think the main use case for mdev is to do a one-time creation of |
8 |
typical device nodes with minimal use of resources. Perhaps you might |
9 |
say mdev is to udev as dash is to bash (though dash is |
10 |
syntax-compatible with bash, or at least it aims to be, and I'm not |
11 |
sure the same is true of mdev vs udev). |
12 |
|
13 |
If you're running a server or embedded device and you just need it to |
14 |
detect your hard drives and maybe a few devices you're willing to |
15 |
write scripts for, then it is a perfect choice. I have no idea how |
16 |
well it supports hotplugging of usb devices and such. |
17 |
|
18 |
For a desktop - it seems like a poor choice. By the time you enhanced |
19 |
it to do everything udev does you'll ruin it for embedded use and |
20 |
probably be stuck with all the same issues we have with udev. Fork |
21 |
udev if you must (good luck with that), but I don't really see mdev as |
22 |
being a real competitor. |
23 |
|
24 |
By all means write up an mdev howto and link it in the embedded guide |
25 |
or if enough users are passionate about it perhaps even link it in the |
26 |
handbook (as an alternative for adventurous users with special needs). |
27 |
However, I just can't see it ever becoming the default on a |
28 |
general-purpose distro like Gentoo (which aims to be all things to all |
29 |
people as much as is supportable). Certainly it is in the spirit of |
30 |
Gentoo to support it as an option for those willing to deal with the |
31 |
downsides (don't expect your bluetooth keyboard to work automagically, |
32 |
etc). |
33 |
|
34 |
Rich |