From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 20 08:20:21 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA7F616A4B3 for ; Mon, 20 Oct 2003 08:20:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31D4243F85 for ; Mon, 20 Oct 2003 08:20:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9KFKLFY081138 for ; Mon, 20 Oct 2003 08:20:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9KFKL0D081137; Mon, 20 Oct 2003 08:20:21 -0700 (PDT) (envelope-from gnats) Date: Mon, 20 Oct 2003 08:20:21 -0700 (PDT) Message-Id: <200310201520.h9KFKL0D081137@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Matt Peterson Subject: Re: misc/58272: [patch] rc.d/diskless detection, dhcp rebuild X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Matt Peterson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 15:20:21 -0000 The following reply was made to PR misc/58272; it has been noted by GNATS. From: Matt Peterson To: FreeBSD-gnats-submit@freebsd.org Cc: Dirk-Willem van Gulik , phk@freebsd.org Subject: Re: misc/58272: [patch] rc.d/diskless detection, dhcp rebuild Date: Mon, 20 Oct 2003 08:11:21 -0700 On Mon, Oct 20, 2003 at 07:33:10AM -0700, Dirk-Willem van Gulik wrote: > > Comparing this to > http://wleiden.webweaving.org:8080/svn/node-config/factory/trunk/nodeconfig/ > where do the same. > > > 3. Move newalias rebuild, only if sendmail is enabled > > We moved this to /var/run with a link from /etc > > > 4. Re-work DHCP domain-name & DNS to use kenv dhcp.* values (plumbed > > from PXE boot loader) OR read from dhclient.leases (in the case of > > r/o flash using DHCP). > > And same for resolv.conf to /var/run - as dhclient will actualy block/hang > when it cannot write its resolv.conf to /etc. Right, I assume resolv.conf and other etc files are sym-link to a writable directory. > > +rootdev=`sysctl -n kern.rootdev` > > +ro_test=`mount | grep $rootdev | grep read` > > Rather than detect we also found it useful to have this under > mount_rw_root="NO sort of control. Ahh, you mean 'root_rw_mount', ya; totally, I've updated the patch to use vs. the ghetto detection method. http://matt.peterson.org/FreeBSD/stripdown/diskless.diff