:: Re: [Dng] What to do with udev? Som…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Isaac Dunham
Fecha:  
A: Enrico Weigelt, metux IT consult
Cc: dng
Asunto: Re: [Dng] What to do with udev? Some ideas...
On Sat, Dec 27, 2014 at 09:44:24PM +0100, Enrico Weigelt, metux IT consult wrote:
> On 26.12.2014 23:12, karl@??? wrote:
>
> > I suggest:
> >
> > 5- root maintains /dev manually
> >
> > since a daemon for /dev isn't nessesary for a static system.
>
> ACK.
>
> Probably would need some extra package (maybe just it's postinst) to do
> some initial /dev popuation.


Traditionally /dev was populated by MAKEDEV (in package makedev), IIRC.
umount /dev; busybox mdev -s
should also provide a locally appropriate /dev.
(mdev is part of busybox and Debian enables it, but there is not a package
with a ready-to-use mdev symlink and /etc/mdev.conf yet. Defaults are
somewhat usable, but don't have groups or permissions set as Debian
would do.)

mdev has two functions:
mdev -s will populate /dev based on what /sys says;
mdev with no arguments uses the hotplug interface, whereby the kernel
automatically runs it on hardware addition with an environment equivalent
to the contents of /sys/.../uevent.
If you disable the hotplug interface via procfs, you can use mdev -s
the way you'd use MAKEDEV.


HTH,
Isaac Dunham