From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 01:24:29 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 D10A116A4D6 for ; Tue, 19 Oct 2004 01:24:29 +0000 (GMT) Received: from auk2.snu.ac.kr (auk2.snu.ac.kr [147.46.100.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4974E43D31 for ; Tue, 19 Oct 2004 01:24:24 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004101910:23:57:671539.7481.2835454896 for ; Tue, 19 Oct 2004 10:23:57 +0900 (KST) Message-ID: <41746CC6.4030407@yahoo.com> Date: Tue, 19 Oct 2004 10:24:22 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041017 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ryan Sommers , freebsd-current References: <20041013172834.81984.qmail@web54008.mail.yahoo.com> <4172E340.20206@freebsd.org> <41731071.2030405@yahoo.com> <417346BB.3050609@freebsd.org> <41734AFB.2040208@gamersimpact.com> <4173635C.5000304@yahoo.com> <65140.208.4.77.15.1098123461.squirrel@208.4.77.15> In-Reply-To: <65140.208.4.77.15.1098123461.squirrel@208.4.77.15> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: YES-__TRSYS_LV__3 (SR:-9.36) (SRN:SPAMROBOT) ----------------- Subject: Re: I deleted /stand/, but I need it again for diskless boot... 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: Tue, 19 Oct 2004 01:24:30 -0000 Ryan Sommers wrote: > Rob said: > >>I'm willing to try just anything. >>The problem is that I'm not familiar with the cpio and pax commands. > > Ok, here is a patch for /etc/rc.d/initdiskless. Note, I currently don't > have a diskless system to test on, I'm still looking for some PXE hardware > that isn't being used in production that I can use to work with cleaning > up the diskless environment for 5.x. So, I make no promises. :) > > Index: initdiskless > =================================================================== > RCS file: /home/ncvs/src/etc/rc.d/initdiskless,v > retrieving revision 1.39 > diff -u -r1.39 initdiskless > --- initdiskless 7 Oct 2004 13:55:26 -0000 1.39 > +++ initdiskless 18 Oct 2004 18:03:23 -0000 > @@ -305,7 +305,7 @@ > if [ -f $j ]; then > create_md $subdir > echo "Loading /$subdir from cpio archive $j" > - (cd / ; /stand/gzip -d < $j | /stand/cpio --extract -d ) > + (cd / ; pax -rz -p e -f $j ) > fi > done > for j in /conf/$i/*.remove ; do > > Now, in addition to this you will need my other patch that moves gzip to > /bin instead of /usr/bin. You can download it at > http://208.4.77.15/gzip-to-bin.tgz > > To add it to your source tree: cd /usr/src (or your respective directory) > ; tar zxvf /path/to/gzip-to-bin.tgz ; rm -rf gnu/usr.bin/gzip > > Then a regular build/install world, and you'll have to remake your NFS > mounted root. I tested this patch with a build/install world this morning. Thanks. I have done all that and the master PC is compiling (it's a slow system, taking almost a day to compile world). I'll report the results soon. If successful, will you suggest/submit this as an official patch for 5.3; or will it be merely a personal patch for my diskless setup? If it's going into 5.3, then /stand should be removed altogether after the install process! Rob.