From owner-freebsd-current@FreeBSD.ORG Sat Oct 23 14:36:23 2004 Return-Path: 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 049D916A4CE for ; Sat, 23 Oct 2004 14:36:23 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 80DED43D48 for ; Sat, 23 Oct 2004 14:36:22 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 64894 invoked by uid 0); 23 Oct 2004 14:35:08 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.165.205) by node15.coopprint.com with SMTP; 23 Oct 2004 14:35:08 -0000 Message-ID: <417A6C6B.6010109@gamersimpact.com> Date: Sat, 23 Oct 2004 09:36:27 -0500 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ryan Sommers References: <4171F702.9020405@gamersimpact.com> In-Reply-To: <4171F702.9020405@gamersimpact.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: Removal of /stand Directory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 23 Oct 2004 14:36:23 -0000 (moved from arch@ to try and find more diskless users, original thread http://docs.freebsd.org/cgi/getmsg.cgi?fetch=10365+0+current/freebsd-arch) As promised here is a patch to make removing /stand part of the installation routine. I built a release yesterday and tested. Let me know if you see any problems with this. The only thing that remains in the way of something like this is how to deal with initdiskless using stand. Three approaches I see are (ranked from worst to best): - Let the person setting up the diskless system figure it out themselves. - Remove support for using compressed archives for diskless md(4) templates. - Use /rescue/tar and /rescue/gzip instead of /stand/cpio and /stand/gzip (why does diskless need /rescue?) - Move gzip to /bin and use /bin/gzip and /bin/pax to handle compressed archives (see arch@ thread for patch). Overall is a savings in /. If there is anyone out there willing to test a few patches on a diskless system let me know via private email. Index: usr.sbin/sysinstall/install.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sysinstall/install.c,v retrieving revision 1.359 diff -u -r1.359 usr.sbin/sysinstall/install.c --- usr.sbin/sysinstall/install.c 30 Aug 2004 21:03:09 -0000 1.359 +++ usr.sbin/sysinstall/install.c 21 Oct 2004 17:30:02 -0000 @@ -850,6 +850,9 @@ /* BOGON #5: aliases database not build for bin */ vsystem("newaliases"); + /* BOGON #6: Remove /stand (finally) */ + vsystem("rm -rf /stand"); + /* Now run all the mtree stuff to fix things up */ vsystem("mtree -deU -f /etc/mtree/BSD.root.dist -p /"); vsystem("mtree -deU -f /etc/mtree/BSD.var.dist -p /var"); -- Ryan Sommers ryans@gamersimpact.com