Re: how to do ? minimal udev script for my rc.sysinit ?

linuxcbon linuxcbon <[email protected]> Wed, 06 May 2015 00:43:44 +0000
Newsgroups org.kernel.vger.linux-hotplug
Message-ID <CAJ-LWjNA1Kfu1EO7EhNt+QbmBvbaFJNjJH8jccc85OjtP_C1Vw@mail.gmail.com>
On Tue, May 5, 2015 at 10:34 PM, Greg KH <[email protected]> wrote:
> On Tue, May 05, 2015 at 09:27:38PM +0000, linuxcbon linuxcbon wrote:
>> Hi,
>>
>> my kernel boots ok and gives the hand to init which runs rc.sysinit.
>> I am writing a minimal rc.sysinit.
>> It creates /dev with devtmpfs and now all works except udev.
>> I need 1 or 2 or 3 lines with udev commands to make it work
>> and detect and modprobe needed modules.
>> I don't know the minimal and shortest commands to do this ?
>> Can you please help me ?
>
> Try using mdev.


Hi Greg,

I already do this "mount -t devtmpfs dev /dev" which automagically
creates /dev files
When I do a "mdev -s" , it will recreate /dev, so what's the point of
using devtmpfs
I am also not sure if mdev triggers modprobes like udev does ?
If you have some working mdev or udev examples, I will try.
Until now, this problem has been a real pain for me...

Thanks.
linuxcbon