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

Ed Maste emaste at freebsd.org
Fri Oct 3 15:00:02 UTC 2014


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.


More information about the svn-src-all mailing list