From owner-freebsd-current@FreeBSD.ORG Sun Oct 17 21:25: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 5D6FE16A4CE for ; Sun, 17 Oct 2004 21:25:23 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A771343D2F for ; Sun, 17 Oct 2004 21:25:22 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id i9HLPM90043933; Sun, 17 Oct 2004 14:25:22 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4172E340.20206@freebsd.org> Date: Sun, 17 Oct 2004 14:25:20 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: spam maps References: <20041013172834.81984.qmail@web54008.mail.yahoo.com> In-Reply-To: <20041013172834.81984.qmail@web54008.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 17 Oct 2004 21:25:23 -0000 I suggest patching /etc/rc.d/initdiskless instead: @@ -299,13 +299,13 @@ cp -Rp $j/* /$subdir fi done - for j in /conf/$i/*.cpio.gz ; do + for j in /conf/$i/*.cpio ; do subdir=${j%*.cpio.gz} subdir=${subdir##*/} if [ -f $j ]; then create_md $subdir echo "Loading /$subdir from cpio archive $j" - (cd / ; /stand/gzip -d < $j | /stand/cpio --extract -d ) + (cd / ; /bin/cat < $j | /bin/pax -r ) fi done for j in /conf/$i/*.remove ; do For some reason, people keep forgetting that /bin/pax can read cpio archives. This patch also eliminates the use of gzip (at the cost of requiring an uncompressed archive, which should not be a problem in practice). If you prefer, you could use /rescue/gzip instead. Cheers, Tim spam maps wrote: > Hello, > > This is 5.3-Beta7. > > Earlier I sensed that /stand/ is more or less > redundant (that all is in /rescue/ with 5.X), so > I deleted this directory. > > However, now that I want to use diskless-bootup, > I seem to need /stand/ again. > > Is there a way to get it back? > > Thanks, > Rob. > > PS: using /rescue/ for that instead would be really > nice :). > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >