Generating a tarball directly from make installworld

Alfred Perlstein alfred at freebsd.org
Fri Jul 13 19:46:18 UTC 2012


* Brooks Davis <brooks at freebsd.org> [120713 09:55] wrote:
> On Wed, Jul 11, 2012 at 09:41:11AM -0700, Alfred Perlstein wrote:
> > * Ryan Stone <rysto32 at gmail.com> [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


More information about the freebsd-arch mailing list