From owner-svn-src-head@FreeBSD.ORG Tue Oct 7 23:58:32 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1194A17; Tue, 7 Oct 2014 23:58:32 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E2173CE; Tue, 7 Oct 2014 23:58:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id s97Nw14m025800; Wed, 8 Oct 2014 03:58:01 +0400 (MSK) (envelope-from marck@rinet.ru) Date: Wed, 8 Oct 2014 03:58:01 +0400 (MSK) From: Dmitry Morozovsky To: Ed Maste Subject: Re: svn commit: r272384 - head/usr.bin/mkimg In-Reply-To: Message-ID: References: <201410012103.s91L3HR0010906@svn.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Wed, 08 Oct 2014 03:58:02 +0400 (MSK) Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 23:58:32 -0000 On Fri, 3 Oct 2014, Ed Maste wrote: > On 2 October 2014 10:43, Ed Maste wrote: > > > > I've been using brooks' NO_ROOT support along with makefs / mkimg to > > build and test changes by creating an image to boot in QEMU. This > > change provides a noticeable improvement in the cycle time. > > I've had a couple of inquiries about the workflow I've been using, so > I've added a brief set of steps to my Wiki page at > https://wiki.freebsd.org/EdMaste/BuildVM . > > With -DNO_ROOT for the install targets an mtree file named METALOG > file is created at the top of DESTDIR. Files are installed owned by > the user, without special flags. Makefs reads the METALOG file and > applies the desired ownership, permissions and flags in the generated > file system. > > Then mkimg creates an image with a GPT partition table, the UFS > filesystem created by makefs, and the various boot loader bits for > legacy and UEFI boot. Wouldn't it be useful for automating backing up config directories? I'd think about copying, say, /etc and /usr/local/etc to sometemporary place, changing owner to non-privileged user, and then commit changes (removals should be treated specially, of course) to some kind of SCM? Or, does such project exist already? I failed to find it, but maybe my goole-fu is lacking necessary components ;) -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------