svn commit: r272384 - head/usr.bin/mkimg

Dmitry Morozovsky marck at rinet.ru
Tue Oct 7 23:58:32 UTC 2014


On Fri, 3 Oct 2014, Ed Maste wrote:

> On 2 October 2014 10:43, Ed Maste <emaste at 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 at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the svn-src-all mailing list