From owner-freebsd-arch@FreeBSD.ORG Fri Jul 13 19:46:18 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 719D8106564A; Fri, 13 Jul 2012 19:46:18 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5864C8FC15; Fri, 13 Jul 2012 19:46:18 +0000 (UTC) Received: by elvis.mu.org (Postfix, from userid 1192) id 104A31A3C60; Fri, 13 Jul 2012 12:46:12 -0700 (PDT) Date: Fri, 13 Jul 2012 12:46:11 -0700 From: Alfred Perlstein To: Brooks Davis Message-ID: <20120713194611.GA33444@elvis.mu.org> References: <20120711164111.GJ88966@elvis.mu.org> <20120713165403.GA89895@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120713165403.GA89895@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.3i Cc: Ryan Stone , freebsd-arch@freebsd.org Subject: Re: Generating a tarball directly from make installworld X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 19:46:18 -0000 * Brooks Davis [120713 09:55] wrote: > On Wed, Jul 11, 2012 at 09:41:11AM -0700, Alfred Perlstein wrote: > > * Ryan Stone [120710 20:18] wrote: > > > I was playing around with this a couple of months ago and a recent > > > thread on -arch prompted me to pick it up again. The idea, for those > > > who aren't familiar with it, is to have the base system build > > > infrastructure generate tarballs directly. I believe that that the > > > current approach is to do a make installworld installkernel > > > distribution to an empty directory, and then tar that up. That's not > > > an ideal system because in order to have file ownership, flags, etc be > > > set correctly, installworld and friends must be run as root. > > > > > > > This is pretty cool, I would suggest going along the route of mtree > > + tar as you mentioned. > > > > If you hacked install(1) to install without special permissions and > > then to also make a simple file that has "path/file perms owners", > > then later convert that to an mtree file you should be fine. > > NetBSD's install has a -M option to create said file. > > http://netbsd.gw.com/cgi-bin/man-cgi?install++NetBSD-current > > On thing that has been missing in this thread is that we also want to > support building images with non-libarchive tools such as makefs. It > already supports mtree files in place of directory crawls, but the use > of specfiles to override permissions isn't usable without importing > NetBSD's mtree or at least a lot of code from it. Ok, so obviously we can't go in this direction. :) -- - Alfred Perlstein .- VMOA #5191, 03 vmax, 92 gs500, 85 ch250, 07 zx10 .- FreeBSD committer