Gentoo Archives: gentoo-dev

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: udev <-> mdev
Date: Mon, 30 Jul 2012 16:47:39
Message-Id: 20120730164404.GA8879@waltdnes.org
In Reply to: Re: [gentoo-dev] Re: udev <-> mdev by Luca Barbato
1 On Sun, Jul 29, 2012 at 01:38:28PM +0200, Luca Barbato wrote
2
3 > Forking udev and making sure it stays as lean as possible isn't that bad.
4
5 That describes mdev to a T. No need to re-invent the wheel.
6
7 > Making mdev a bit richer and enjoy the speed advantage of busybox
8 > over stand alone shells could be another option.
9
10 The busybox people would probably not want "additional functionality"
11 built-in. A better route would be "mdev helper programs" or "shims"
12 that we can add to Gentoo as required. Actually, shell scripts
13 launched by /etc/mdev.conf can be quite powerful. E.g. wiki page
14 https://wiki.gentoo.org/wiki/Mdev/Automount_USB has ash scripts to
15 implement auto(un)mounting of USB devices. It works for me, but I'm
16 waiting for feedback from other users before moving it out of beta
17 ("Work In Progress") status. Once I'm confident in the scripts, I'll
18 link to them from the main mdev page at
19 https://wiki.gentoo.org/wiki/Mdev In case you're wondering, I'm not a
20 C programmer, so scripting was the only available tool for me.
21
22 > Most of the perceived speed in non-shell init systems is due not
23 > having to spawn as many processes. A full busybox wouldn't spawn
24 > many processes.
25
26 It would be an interesting project to make a busybox-based Gentoo
27 fork. But there are differences between busybox utilities and
28 standalone gnu utilities. This is especially important for a
29 source-based distro like Gentoo, where all sorts of gnu utilities
30 get excercised by build scripts each time you do an update.
31
32 --
33 Walter Dnes <waltdnes@××××××××.org>