On Wed, Sep 14, 2011 at 11:55:08PM -0400, Walter Dnes wrote: > Gentoo has /bin/busybox as part of the default system. There is also > an option to build busybox with libraries statically linked. IANAPP > (I Am Not A Professional Programmer), but I can do quite a bit of bash > scripting etc. In Gentoo, the user generally knows what peripherals he > has permanently connected to the machine. Plus you'll get the usual USB > keys and external drives being hooked up occasionally. > > If mdev can replace udev a lot of Gentoo users would be very happy. > You might even have to start a separate "mdev-users" list <G>.
This question is quite pointed to Gentoo and probably belongs on
Gentoo lists instead of here :-p.
Gentoo already has minimal built-in support for using mdev. Just make
sure you are using a modern openrc/baselayout-2. Then make sure that
sys-apps/busybox is installed with the mdev flag. Then you'll need to
make a small modification to /etc/init.d/mdev, without which my boot
process failed. (I think that mdev -s was being invoked before /sys
was mounted). Add the following function to /etc/init.d/mdev:
depend()
{
provide dev
need sysfs
}
Finally, just:
# rc-update add mdev sysinit
# rc-update del udev sysinit
I found that I had to manually configure my Xorg to use the correct
devices under /dev/input/event*, since Xorg integrates with
udev(?). Also, I had to add a bunch of modules which udev was
autoloading for me to /etc/conf.d/modules. There are very likely to be
other problems with this setup varying from machine to
machine/configuration.
It is the hooks and triggers which udev can be configured to run which
will be the biggest problem with using mdev. Many applications install
udev rules/hooks in /lib/udev/rules.d. I think a lot of similar
functionality could be done through mdev.conf, but that would be a lot
of work... and also additional work to make it possible for individual
packages to install mdev-specific rules (I don't think that mdev
supports an mdev.conf.d/ sort of paradigm like udev's rules.d/, but
that could be overcome by ugly scripts concatenating things into
mdev.conf perhaps?).
--
binki
Look out for missing or extraneous apostrophes!
pgpnfBhFPcH6V.pgp
Description: PGP signature
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
