From mboxrd@z Thu Jan 1 00:00:00 1970 From: Logan Rathbone Date: Fri, 22 Sep 2006 03:10:54 +0000 Subject: Re: Trouble with udevtrigger/udevsettle Message-Id: <4513543E.7010209@utoronto.ca> List-Id: References: <45122DD3.2000303@phoenuxos.com> In-Reply-To: <45122DD3.2000303@phoenuxos.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Bryan Kadzban wrote: > Oops, didn't send this to the list last time: > > Bryan Kadzban wrote: > =20 >> Logan Rathbone wrote: >> >> =20 >>> Thus I have to wait quite a while (about a minute or so) for >>> udevsettle to complete and have my bootup continue. Any ideas what >>> this could be about? >>> =20 >> Hmm... Just guessing here, but: >> >> >> =20 >>> I never really have a network cable plugged into the via-rhine, but I >>> don't see why that would make a difference. >>> =20 >> Your distro may have a rule set up to try to ifup the interface when it >> sees an add event for it. If this ifup is trying to use DHCP, it *may* >> take a long time to fail when it can't find a DHCP server. I seem to >> remember a 30-second timeout with dhcpcd in the past, which it waits for >> twice; that would match up with the one-minute timing you're seeing. >> >> I would suspect that the DHCP client should to fail immediately if it >> doesn't detect a link, but I don't know for sure whether all of them do. >> >> You might try blacklisting via-rhine in modprobe.conf. That way you >> should never get an add event for eth0, and if the long delay is due to >> some rule that triggers from that, it shouldn't happen. >> =20 Yes, you are right! The udev SRPM I built from came from Mandriva, who=20 set up udev rules to automatically configure and start hotplugged=20 ethernet devices. I guess they don't use udevtrigger for coldplugging,=20 as that would probably produce the same problem I was having. I suppose=20 that I could reconfigure the rules to fork the dhclient process, but=20 then I'd possibly risk a race condition with some later services (not=20 likely, but possible). But I guess I'm doing that anyway since my=20 'network' initscript uses ifplugd to bring the interfaces up. But I digress! Maybe in the future I'll toy around with it and have=20 udev rules handle the configuration and starting/stopping of my ethernet=20 devices, but I certainly don't need that functionality atm. Thanks for your help, guys. --Logan ------------------------------------------------------------------------- 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