From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 18:53:18 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35E8616A420 for ; Wed, 22 Feb 2006 18:53:18 +0000 (GMT) (envelope-from oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3C4243D46 for ; Wed, 22 Feb 2006 18:53:17 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Wed, 22 Feb 2006 10:53:14 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id AEE0D45041; Wed, 22 Feb 2006 10:53:13 -0800 (PST) To: Tobias Roth In-reply-to: Your message of "Wed, 22 Feb 2006 19:31:30 +0100." <20060222183130.GA18354@droopy.unibe.ch> Date: Wed, 22 Feb 2006 10:53:13 -0800 From: "Kevin Oberman" Message-Id: <20060222185313.AEE0D45041@ptavv.es.net> Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 18:53:18 -0000 > Date: Wed, 22 Feb 2006 19:31:30 +0100 > From: Tobias Roth > > On Wed, Feb 22, 2006 at 06:41:42PM +0100, Tobias Roth wrote: > > On Wed, Feb 22, 2006 at 09:02:12AM -0800, Kevin Oberman wrote: > > > I have dhclient almost working on -current. I just added the following 3 > > > lines before running dhclient: > > > if ! [ -d "/var/empty" ]; then > > > mkdir /var/empty > > > fi > > > > > > I don't delete the directory, so it's only created once and just sits > > > there forever. > > > > I'll add that to the next revision. I'm installing and setting up > > -CURRENT right now so I can continue development there. > > By the way, do you know why you have no /var/empty in the first place? > I just tried profile with a vanilla current from feb 7, and it works > even without your trick above, since I already had a /var/empty. I do have /var/empty, but not until mountcritlocal. profile runs dhclient before I have /var/empty. Since the cost of putting the /var/empty in the /var directory (not yet a mountpoint) costs 1 inode and nothing more. It is, of course, hidden when the var partition is mounted with the "real" /var/empty directory. > > > Now, the correct profile is selected, but I now hang in dhclient in > > > netif. This may be impacted by the fact that I am running ISC > > > dhcp-client because my Prism 2.5 does not play will with the one in > > > -current. > > > > Yeah, in rev 25I adapted profile from the old ISC dhcp to the new > > OpenBSD dhcp. You might want to revert this if you depend on ISC. > > On second thought, I am now confused. Are you saying that you use > both dhclients concurrently? The OpenBSD one during profile (since > it is run before mountcritlocal and you probably have isc-dhclient > installed under /usr/local), and isc after mountcritlocal has been > executed? I should have clarified this. I use the ISC dhclient, but it is not available when profile.sh runs (before mountcritlocal), so the dhclient used by profile is the default one. I could install ISC dhclient in /sbin, but I try not to muck with /sbin unless I REALLY have to so so. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634