Date: Wed, 8 Oct 2014 03:58:01 +0400 (MSK) From: Dmitry Morozovsky <marck@rinet.ru> To: Ed Maste <emaste@freebsd.org> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r272384 - head/usr.bin/mkimg Message-ID: <alpine.BSF.2.00.1410080351080.72273@woozle.rinet.ru> In-Reply-To: <CAPyFy2Ckb99u7kJu=Yddr42Rt9hchO%2BwCdTx8pxh9=9UEQzehQ@mail.gmail.com> References: <201410012103.s91L3HR0010906@svn.freebsd.org> <CAPyFy2AsJkiATeCjRVThaG%2B0oXnRZYtaYu-YLTukXYP0sWiNeA@mail.gmail.com> <CAPyFy2Ckb99u7kJu=Yddr42Rt9hchO%2BwCdTx8pxh9=9UEQzehQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 3 Oct 2014, Ed Maste wrote: > On 2 October 2014 10:43, Ed Maste <emaste@freebsd.org> 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 *** ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1410080351080.72273>