Re: udev is too slow creating devices

From: Greg KH
Date: Tue Sep 14 2004 - 16:29:04 EST


On Tue, Sep 14, 2004 at 08:33:22PM +0200, Giacomo A. Catenazzi wrote:
> Hello people!
>
> When I load a module (with modprobe) the relative device is too
> slowly created with udev, so modprobe return before the device
> is really created. Because of this my init.d script will
> fail with modular microcode + udev
>
> test case:
>
> udev + modular microcode:
> $ modprobe -r microcode
> $ modprobe microcode ; microcode_ctl -u
> => microcode_ctl does NOT find the device
>
> $ modprobe -r microcode
> $ modprobe microcode ; sleep 3; microcode_ctl -u
> => microcode_ctl FIND the device
>
> [without udev it is OK, so I assume no errors
> in modprobe]
>
> Is it a bug of udev?

No, it's just the way it now works.

> Else what workaround I can use? (sleep is to slow for
> an already to sloow system initialitation)

Run microcode_ctl from a script in /etc/dev.d/microcode/ See the file:
http://kernel.org/pub/linux/utils/kernel/hotplug/RFC-dev.d

for more information on now /etc/dev.d works.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/