[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: device creation for udev



On 2004-07-04 Laszlo 'GCS' Boszormenyi <gcs@lsc.hu> wrote:
> * Andreas Metzler <ametzler@downhill.at.eu.org> [2004-07-04 08:39:59 +0200]:
> > On 2004-07-04 Laszlo 'GCS' Boszormenyi <gcs@lsc.hu> wrote:
> > >  One of my packages require a device to be crated for functioning. It is
> > > ok if the user has a normal /dev/, but how should I handle the udev
> > > case? I can detect it, no problem; still I am looking forward for
> > > documentation how should I achieve this with udev and/or examples how
> > > other packages do it. Can someone help me out here?
 
> > The MAKEDEV currently in sarge (2.3.1-70) handles this automatically,
> > you just invoke /sbin/MAKEDEV and it does the right thing.

>  Thanks Andreas. But how can I specify major and minor numbers? As I
> know and seems MAKEDEV supports only a list of devices it knows. As my
> device entry would be specific, I get:
> /sbin/MAKEDEV: don't know how to make device "grsec"

Afaict getting MAKEDEV fixed is the proper course of action, because
you must use it. (policy 10.6)

> It should have 1,10 ad be char oriented. In the normal case I use mknod,
> but that's fail for udev between reboots.

If you need tomanually generate the device node even when using udev
there is a bug somewhere, either in udev or in the kernel-patch.

> > PS: example for manual checking in cdrecord.
>  I see you use /dev/MAKEDEV instead of /sbin/MAKEDEV ; I do not get it,
> at least on my system /dev/MAKEDEV is a symlink to the latter.

Some versions of udev replaced /dev/MAKEDEV with a udev-aware wrapper,
this has since been undone and fixed in the normal MAKEDEV instead.
               cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"



Reply to: