From owner-svn-src-all@FreeBSD.ORG Fri Oct 3 15:00:02 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32E57EB9; Fri, 3 Oct 2014 15:00:02 +0000 (UTC) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E34C78FA; Fri, 3 Oct 2014 15:00:01 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id uq10so194569igb.8 for ; Fri, 03 Oct 2014 08:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=sDfB37LYFqcFgD0lN4uLDCShbpw0LrhkG9FFQvNTrNs=; b=RKLbRA+89FoOA5CDeBx4ntoCcxkN+YkLM/l+oOmweUQ+YgSgIf8x6Eyv2AAM2+O8bt 8ZtVnS90+iLOaI+Bb2yEwlt0RfcRMcD+Xft+qAMqOXiZJRA7xU91i2cUIpgCiz70bpq7 fh1TMpwP0YLQuNl0Ms58KN6XAlaSlb/hc4DY7qFma3gG87SRA0OjcFtuEqYG8Tr1b2h7 ziIZInNN1erZTuCb+kKZlpR8q7HVehgx0i1Z9FXIkr8WUpie5Hzbew7CgXgm9R4CzjP1 X+2i8KkAD3Hnn0BLB6stmfqw99q3wf0e9xX7HeTgfNzineivBT7aNJuURQuhrxN7SFdt NZdA== X-Received: by 10.43.59.80 with SMTP id wn16mr13786037icb.6.1412348401313; Fri, 03 Oct 2014 08:00:01 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.9.221 with HTTP; Fri, 3 Oct 2014 07:59:41 -0700 (PDT) In-Reply-To: References: <201410012103.s91L3HR0010906@svn.freebsd.org> From: Ed Maste Date: Fri, 3 Oct 2014 10:59:41 -0400 X-Google-Sender-Auth: 3ern_Nup925-hQbC_wU1pmTSQQY Message-ID: Subject: Re: svn commit: r272384 - head/usr.bin/mkimg To: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 15:00:02 -0000 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.