From owner-freebsd-current Mon Apr 22 23:21:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 7872B37B43D; Mon, 22 Apr 2002 23:20:00 -0700 (PDT) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp (Exim 3.35 #2) id 16ztee-0002kl-00; Tue, 23 Apr 2002 09:19:56 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: obrien@FreeBSD.ORG Cc: Freebsd Current Subject: Re: FreeBSD 5.0 Developer Preview #1 Now Available / diskless booting In-Reply-To: Message from "David O'Brien" of "Mon, 22 Apr 2002 14:42:17 PDT." <20020422144217.A73087@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Apr 2002 09:19:56 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I'll commit this to rc.diskless1 this will only work if you include the changes to bootp.c > > +if [ -z "`hostname -s`" ]; then > + hostname=`kenv dhcp.host-name` > + hostname $hostname > + echo "Hostname is $hostname" > +fi > > BUT you've missed the point with this point: > +else > + mount_md 4096 /conf/etc 0 > + chkerr $? "MFS mount on /conf/etc" > + mount -t unionfs /conf/etc /etc > + /bin/chmod 755 /etc > + find /etc > /dev/null > + touch /etc/.sentinel > > That being that some of us actually WANT /etc to be left the fsck alone. > We NFS mount / and that / has /etc as it should be. I also cannot follow > what you are trying to do with /etc/conf. Perhaps you could comment that > part? i don't understand what you mean by 'left the fsck alone', but i'll try to explain. / ( and whatever is under it) is NFS mounted read only, as should be. the 'original' solution is to make /etc writable is to mount a MD, then copy all /conf/default/etc to it. my 'solution' is to mount union /etc/conf as the 'writable' part. 1) i don't have to copy - and hence 2) have only one copy of /etc for all my diskless. since the next part of rc.diskless1 copies files specific to the host/cluster, and there are some cases that i want to actually remove a file, i do that in rc.local (configurable via rc.conf.local). thanks for looking into this, danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message