kernel modules and udev

Roger Oberholtzer roger
Fri Jan 13 14:50:53 PST 2006


On Fri, 2006-01-13 at 12:09 -0500, Net Llama! wrote:
> On Fri, 13 Jan 2006, Roger Oberholtzer wrote:
> >
> > I have a situation where I am wanting to ensure that removable SATA
> > disks maintain a consistent mount point, no matter which disks are
> > present. The classic problem.
> >
> > Here is my twist on it:
> >
> > If I have the sd_mod module loaded as part of initrd, the udev calls are
> > not made. The disks are located and entries are made in /dev in the old
> > fashioned way (first disk is /dev/sda, and so on). If I wait a bit and
> > load sd_mod by hand, then the udev calls are made.
> >
> > Is udev not ready before any drivers that would add disks are loaded?
> 
> Correct, its a user (hence the u in udev) space function, not a kernel
> function.
> 
> > Isn't udev compiled into the kernel (not a module)? Is it that udev
> 
> See above :)

In fact this is not cut and dry. It seems that you can put udev stuff in
the initramfs and then EVERY device is handled through it. But the
general idea is that it becomes active after the initrd modules are
loaded. So don't put a module there that will enable devices you want to
be handled by udev.

Anyway, I have all my troubles sorted.

--
Roger




More information about the Linux-users mailing list