From owner-freebsd-current@FreeBSD.ORG Mon Oct 18 18:09:59 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 8A00F16A4CE for ; Mon, 18 Oct 2004 18:09:59 +0000 (GMT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A63443D31 for ; Mon, 18 Oct 2004 18:09:59 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 37886 invoked by uid 89); 18 Oct 2004 18:17:41 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 18 Oct 2004 18:17:41 -0000 Received: from 208.4.77.15 (SquirrelMail authenticated user ryans@gamersimpact.com); by www2.neuroflux.com with HTTP; Mon, 18 Oct 2004 12:17:41 -0600 (MDT) Message-ID: <65140.208.4.77.15.1098123461.squirrel@208.4.77.15> In-Reply-To: <4173635C.5000304@yahoo.com> 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> Date: Mon, 18 Oct 2004 12:17:41 -0600 (MDT) From: "Ryan Sommers" To: "Rob" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: Ryan Sommers cc: freebsd-current 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: Mon, 18 Oct 2004 18:09:59 -0000 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. > I don't understand this, mainly because I'm not familiar with cpio > and pax. At present I generate the var.cpio.gz and etc.cpio.gz, > as follows: Ignore what I said. Didn't mean to confuse you. -- Ryan Sommers ryans@gamersimpact.com