From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 15 Sep 2005 16:13:34 +0000 Subject: Re: udevstart vs udevsend vs /sbin/hotplug Message-Id: <20050915161334.GA7562@vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Sep 15, 2005 at 11:42:53AM -0400, Jim McQuillan wrote: > I'm still trying to wrap my brain around udev and all its friends. > > i've got an LTSP thin client booting, and i've got udev-069. As part of > the startup process, I mount the /sys, /dev, /proc filesystems, > and then I run /etc/start_udev, which populates my /dev tree. > > I've found the udev rules.d, and added some RUN commands, so I could > watch what is happening. I've also seed udevmonitor, and it shows > events, when I plug/unplug my USB memory stick. > > But, device nodes don't get created. If I then do this: > > modprobe sd_mod > modprobe usb-storage > > Then, the device nodes are all created. > > So, I know that udev is doing its thing. > > What I can't figure out is where the hotplug scripts fit in. > > I read Greg's article on LWN (http://lwn.net/Articles/123932/). > Great article btw. It helped me understand alot about the process of > hotplugging. I really could have used that article last year, when we > did our first hotplug system for LTSP. > > I was understanding just fine, until I got to the 2nd-to-last paragraph. > It says to use '/sbin/udevstart' in /proc/sys/kernel/hotplug. BUT, > udevstart looks like it should only be run once, at system startup. Right. it's udevsend. Greg, can you fix the article? > I'm thinking /sbin/udevsend it the correct thing to handle hotplug > events, but I can't see how (or even if) it interfaces with the hotplug > scripts. Older udev versions handled /etc/hotplug.d/ internally, with newer versions you need to plug it in as rules. Look at the distro rules in the udev tree for MODALIAS and RUN keys with modprobe. If you want to stick with /etc/hotplug.d/, look at the RELEASE-NOTES for udev 059. Kay ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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