Re: udev-076 setup (was Re: Post LFS-6.1.1 plans)
Alexander E. Patrakov wrote: Ubuntu is irrelevant here. My wild guess is that you removed the hotplug initscript, but forgot to remove stuff from /etc/hotplug.d and still have the run_hotplugd rule. This runs the agents for every uevent. Look how long it takes for an empty bash script to run 800 times on my Celeron 1200: [EMAIL PROTECTED]:~$ echo '#!/bin/bash' test.sh [EMAIL PROTECTED]:~$ time for a in `seq 1 800` ; do bash test.sh ; done real0m9.157s user0m7.044s sys 0m2.108s But isn't there a sleep 0.1 in the script? Does that sleep get run hundreds of times? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: udev-076 setup (was Re: Post LFS-6.1.1 plans)
Alexander E. Patrakov wrote: My wild guess is that you removed the hotplug initscript, but forgot to remove stuff from /etc/hotplug.d and still have the run_hotplugd rule. I had removed the run_hotplugd rule, but obviously either not rebooted or restarted udevd. I also had old copies of run_hotplugd and run_devd lying around so removed those, just to make sure I hadn't overlooked anything else. So, with those gone boot times were back to normal again, but no modules get loaded. That's not really surprising, given the fact that none of the rules in 25-lfs.rules tell udev to go and modprobe anything. I added the following (shamelessly nicked from the Redhat examples shipped in the udev tarball): ACTION==add, SUBSYSTEM==usb, MODALIAS==*, \ RUN+=/sbin/modprobe $modalias ACTION==add, SUBSYSTEM==scsi, SYSFS{type}==[07], \ RUN+=/sbin/modprobe sd_mod And now coldplugging and hotplugging work automagically! So, is there anything else required, aside from the obvious expansion of the above modprobe related rules to other subsystems, etc? Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: udev-076 setup (was Re: Post LFS-6.1.1 plans)
Matthew Burgess wrote: I added the following (shamelessly nicked from the Redhat examples shipped in the udev tarball): ACTION==add, SUBSYSTEM==usb, MODALIAS==*, \ RUN+=/sbin/modprobe $modalias Shouldn't that be: ... MODALIAS=?* ... Or is that only for environment variables (ENV{...})? The udev RELEASE-NOTES file says that in udev 064: * will not fail anymore, if the key does not exist or is empty. but I don't know if that's only for ENV{...} or if it's for everything. signature.asc Description: OpenPGP digital signature -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: udev-076 setup (was Re: Post LFS-6.1.1 plans)
Matthew Burgess wrote: And now coldplugging and hotplugging work automagically! So, is there anything else required, aside from the obvious expansion of the above modprobe related rules to other subsystems, etc? Build and install the firmware helper. Jim Gifford has a shall script version of it (obviously ripped from the old hotplug package), but I prefer the binary version because it is shipped with udev in the extras directory. -- Alexander E. Patrakov -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: udev-076 setup (was Re: Post LFS-6.1.1 plans)
Alexander E. Patrakov wrote: Matthew Burgess wrote: And now coldplugging and hotplugging work automagically! So, is there anything else required, aside from the obvious expansion of the above modprobe related rules to other subsystems, etc? Build and install the firmware helper. Jim Gifford has a shall script version of it (obviously ripped from the old hotplug package), but I prefer the binary version because it is shipped with udev in the extras directory. Ah, yes. I was actually going to propose adding all of the helpers (with the obvious omission of the deprecated/unsupported run_hotplugd and run_devd helpers). That way, if folks need them for their rules then they'll be available. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page