From owner-freebsd-current@FreeBSD.ORG Tue Jan 20 13:29:46 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 1B26616A4CE for ; Tue, 20 Jan 2004 13:29:46 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 526CB43D48 for ; Tue, 20 Jan 2004 13:29:44 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org ([66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id i0KLThkX006791; Tue, 20 Jan 2004 13:29:44 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <400D9DC7.2050209@acm.org> Date: Tue, 20 Jan 2004 13:29:43 -0800 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: Brooks Davis , current@freebsd.org References: <98643.1074545359@critter.freebsd.dk> <20040120090953.GA25898@ei.bzerk.org> <20040120155912.GA18837@Odin.AC.HMC.Edu> <400D8521.109@acm.org> <20040120211346.GA11747@Odin.AC.HMC.Edu> In-Reply-To: <20040120211346.GA11747@Odin.AC.HMC.Edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: REVIEW: cleanvar.patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2004 21:29:46 -0000 Brooks Davis wrote: > On Tue, Jan 20, 2004 at 11:44:33AM -0800, Tim Kientzle wrote: > >>Brooks Davis wrote: >> >>>I think there's some argument that >>>we should move mtree and possiably newsyslog to /sbin to support the >>>population of /var. >> >>Has you considered /bin/pax? > > It seems like that would require a complete rewrite of how we handle > directory creation in the build/release process. Not necessarily. It's relatively easy to convert an mtree file to a tar file. (Just expand the mtree file into a temp dir, then tar up the result.) Then we could have both mtree and tar files in /etc/mtree. Nothing else needs to change, and that gives us something that can be used with /bin/pax on populate critical dirs on systems before /usr is mounted. Tim Kientzle P.S. Hmmm... It looks like it would be easy for libarchive to also read mtree files. Then bsdtar's built-in features for converting archive formats on-the-fly might be useful here. Hmmm....