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

Robert Milasan <[email protected]> Wed, 6 May 2015 08:46:35 +0200
Newsgroups gmane.linux.hotplug.devel
Organization SUSE Linux
Message-ID <[email protected]>
On Tue, 5 May 2015 21:27:38 +0000
"linuxcbon linuxcbon" <[email protected]> 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 ?
> 
> Thanks in advance.
> Linuxcbon
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-hotplug" in the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

This might help:

# start udev daemon (udevd might be called systemd-udevd)
/path/to/udevd --daemon || echo "udev error" >&2

# trigger events
/path/to/udevadm trigger --action=add || echo "udev trigger error" >&2
/path/to/udevadm trigger --type=subsystems --action=add || echo "udev trigger error" >&2

# wait for events to finish
/path/to/udevadm settle || echo "udev settle error" >&2

-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: [email protected]
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html