Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48734 - modules.autoload(ing) should be done after hotplug start
Summary: modules.autoload(ing) should be done after hotplug start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 14:54 UTC by Simone Gotti (RETIRED)
Modified: 2004-04-28 05:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gotti (RETIRED) gentoo-dev 2004-04-22 14:54:24 UTC
Using a pure udev system, I've noticed that the module autoloading (like ide-cd) is did in /etc/init.d/module, but this script is a dependency of hotplug so hotplug is started after it.

For this reason, hotplug isn't started when an entry in the sysfs is done and no one notice udev that it has to create e device under /dev (for ide-cd the devices are /dev/hdc and /dev/hdd for example).

I think a better solution is to split /etc/init.d/modules in 2 parts. The first part will call depmod, modules-update and all the various things, The second part must be called after hotplug loading and it will do the autoloading stuffs.

For this reason I also think that it's better to change the gentoo handbook to make the people install the hotplug service in the boot runlevel instead of the default runlevel.

This make no sense before hotplug it a real BOOT service and not a DEFAULT service! 

Bye!

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-04-28 03:56:39 UTC
Sorry but what I've said isn't right.

The hotplug rc script only load the scripts under /etc/hotplug/. So there's no reason to split modules in 2 scripts, because this is not the cause of the problem.

Probably the problem is that there's a time hole where the hotplug signals from the kernel aren't processed by udevsend (or udevd, I can't understand well).
I don't know the reason of this, but a quick workaround can be to recall udevstart again at the end of the init scripts.

I think that for this isn't needed a new rc script, but this command (with the check for the existence of udev) can be added in a preexistent script but I don't know what script.

Bye!
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-04-28 05:50:00 UTC
I've updated to the latest baselayout-1.8.12 and now it seems to work well. I don't know why but I think that this bug can be closed.