From owner-freebsd-arch Wed May 2 19:57: 4 2001 Delivered-To: freebsd-arch@freebsd.org Received: from bsdhome.dyndns.org (unknown [24.25.2.193]) by hub.freebsd.org (Postfix) with ESMTP id 4A90D37B422 for ; Wed, 2 May 2001 19:56:59 -0700 (PDT) (envelope-from bsd@bsdhome.com) Received: from vger.bsdhome.com (vger [192.168.220.2]) by bsdhome.dyndns.org (8.11.3/8.11.3) with ESMTP id f432uvJ84822 for ; Wed, 2 May 2001 22:56:58 -0400 (EDT) (envelope-from bsd@bsdhome.com) Received: (from bsd@localhost) by vger.bsdhome.com (8.11.3/8.11.1) id f432uu012436; Wed, 2 May 2001 22:56:56 -0400 (EDT) (envelope-from bsd) Date: Wed, 2 May 2001 22:56:56 -0400 From: Brian Dean To: freebsd-arch@freebsd.org Subject: rc.diskless* patches Message-ID: <20010502225656.A1173@vger.bsdhome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've put together some patches to the diskless startup code that I'd like to commit. I've made both -stable and -current versions of the patches. I've tested the -stable patches, but I have not tested the -current patches, hopefully someone can do that and get back to me. My -current environment is not working at the moment. The patches do three things: 1) Reduce diffs between the -current and -stable versions of these files to a bare minimum. Only the definition of the shell function 'mount_md' is different. 2) Provide the ability to make /tmp a memory filesystem independent of /var. This removes the requirement that /tmp be a symlink to /var/tmp and this makes the diskless code work with the default filesystem layout. 3) Simplify the population of the /etc memory filesystem. To avoid the null mount, we currently create a temporary mfs on /tmp, copy /etc to /tmp, then mount /etc as mfs and copy everything back from /tmp, then delete the /tmp mfs. The patch eliminates the /tmp mfs and the subsequent copying and simply populates the /etc mfs by copying from /conf/default/etc. This requires that /conf/default/etc contain a complete copy of all the /etc stuff instead of just overrides. I don't think that is too much of an extra step in setting up a diskless environment. My patches are at: http://people.freebsd.org/~bsd/diskless Any comments are appreciated. I wasn't sure of the best place to post for comments. Some of this was discussed on -stable. I've seen the diskless code discussed on -small also. Instead of posting to -current, -stable, and -small, I'm just posting to -arch, which seems appropriate. If anyone feels that it should get greater coverage, please feel free to forward appropriately. Thanks, -Brian -- Brian Dean bsd@FreeBSD.org bsd@bsdhome.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message