From mboxrd@z Thu Jan 1 00:00:00 1970 From: DervishD Date: Wed, 28 Feb 2007 12:45:27 +0000 Subject: Re: Loading modules on demand with /sbin/hotplug Message-Id: <20070228124526.GA2498@DervishD> List-Id: References: <20070227172320.GA10176@DervishD> In-Reply-To: <20070227172320.GA10176@DervishD> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi Kay :) * Kay Sievers dixit: > If you find MODALIAS in the environment, just run /sbin/modprobe with > a RUN rule and almost all needed modules should get auto-loaded. There > are only a few exceptions for exotic subsystems. I've done this and now the systems hangs up at bootup. I can't find any information in any log, so I don't know the cause (probably modprobe caused some driver to load, which caused an udev event, which caused modprobe to run again, causing an infinite loop). At boot time I mount sysfs, load udevd, launch udevtrigger and udevsettle and after that, the rest of services of my system (I use my own init, so the boot scheme is a bit different, but not that much). The services are launched OK. In my rules file I have this: KERNEL=3D"pty*", OPTIONS+=3D"ignore_device" KERNEL=3D"tty[a-z]*", OPTIONS+=3D"ignore_device" KERNEL=3D"tty", GROUP=3D"tty" KERNEL=3D"vcs", GROUP=3D"tty" KERNEL=3D"vcsa", GROUP=3D"tty" KERNEL=3D"hda1", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"root" KERNEL=3D"hdb1", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"ubuntu" KERNEL=3D"hdb2", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"swap" KERNEL=3D"full", MODE=3D"222"=20 KERNEL=3D"null", MODE=3D"666" KERNEL=3D"zero", MODE=3D"444" KERNEL=3D"random", MODE=3D"444" KERNEL=3D"urandom", MODE=3D"444" SUBSYSTEM=3D"usb_endpoint", OPTIONS+=3D"ignore_device" SUBSYSTEM=3D"mem", GROUP=3D"kmem" SUBSYSTEM=3D"usb_device", ATTRS{serial}=3D"5B6B0990DFC6", NAME=3D"pendrive" #ACTION=3D"add", ENV{MODALIAS}=3D"?*", RUN=3D"/sbin/modprobe $env{MODALIAS}" #ACTION=3D"remove", ENV{MODALIAS}=3D"?*", RUN=3D"/sbin/modprobe -r $env{MOD= ALIAS}" RUN+=3D"/usr/sbin/hal &>> /tmp/hal.log" ----------------------------- The two commented lines are the ones that caused the problem. Any idea about the possible causes? If I move the modprobe command to my "hal" script (IT IS NOT freedesktop HAL, but my own script), the problem is the same: the system hangs as soon as the booting process finishes, and I don't have any evidence of modprobe being hung or whatever. I think I'm missing something VERY simple here, but I can't see what: have you any idea about which the problem may be? Should I delete the second commented line and don't unload modules on demand? May any of the commented lines be causing an infinite loop? Thanks a lot in advance and sorry for bothering you with this kind of questions. If I'm crossing the line, please tell O:) Ra=FAl N=FA=F1ez de Arenas Coronado --=20 Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel