From owner-freebsd-current@FreeBSD.ORG Wed Aug 31 20:42:59 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BB7916A41F for ; Wed, 31 Aug 2005 20:42:59 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0074943D45 for ; Wed, 31 Aug 2005 20:42:58 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 5B3D046C14; Wed, 31 Aug 2005 16:42:58 -0400 (EDT) Date: Wed, 31 Aug 2005 21:42:58 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Brooks Davis In-Reply-To: <20050831194612.GG32477@odin.ac.hmc.edu> Message-ID: <20050831213925.M83712@fledge.watson.org> References: <20050831120730.B39418@fledge.watson.org> <20050831194612.GG32477@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: current@freebsd.org Subject: Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 20:42:59 -0000 On Wed, 31 Aug 2005, Brooks Davis wrote: > The wait should be 10 seconds plus some startup time. It seemed a bit longer, but maybe I was counting fast. I'll time it next time and see if there's more going on there. >> (1) It would be good to configure lo0 first. > > Interfaces are configured in order of index by default. If lo0 were > attached sooner, it would be configured sooner. I'm somewhat tempted to > change it from it's current (apparently bogus) position in the startup > process at SI_SUB_PROTO_IFATTACHDOMAIN to SI_SUB_INIT_IF/SI_ORDER_ANY > and push the l2com attachments from SI_ORDER_ANY to SI_ORDER_MIDDLE. > Strictly speaking I think lo(4) should be SI_SUB_PSEUDO, but moving it > up so it attached first makes some sense given how critical it is. > > Alternativly, one could add code to sort the result of "ifconfig -l" to > configure lo0 first. I wonder if we could sed out lo0 from the automatic list and just configure it first by fiat? While if_loop is in theory optional, it turns out not to be very practical using our default boot scripts (since many tools assume you can bind 0.0.0.0). >> (2) If a dhclient is ctrl-c'd, it would be nice if the rest of the network >> configuration continued. > > I don't see any code in the startup scripts that would cause them to > exit on failure so the issue is probalby that the signal is being > delivered to the /etc/rc.d/netif instance. I don't really know what the > solution to that is. Me neither. All I know is that I don't remember seeing this before. >> The printing of '.'s in dhclient is also a bit excessive. > > Hanging with no output seems even less unhelpful. :( Longer term I want > to get rid of syncronous calls to dhclient in the startup process, but I > haven't had time to work on it and IMO, it's a bit late in the game for > 6.0. I thought a bit about this, but concluded that we probably still have components that assume a one IP (no more, no less) world, and slide by now due to luck. A gradual conversion towards the assumptions of changing IPs has been happening over time (vis natd -dynamic), but perhaps we need to accelerate it some by forcing the issue in 7.x after 6.0 gets out the door? Robert N M Watson