Received: from eggs.gnu.org ([2001:4830:134:3::10]:57417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6Gnt-0001CK-7N for qemu-devel@nongnu.org; Fri, 27 May 2016 08:23:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6Gnn-0007vW-C0 for qemu-devel@nongnu.org; Fri, 27 May 2016 08:23:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6Gnn-0007vP-6l for qemu-devel@nongnu.org; Fri, 27 May 2016 08:23:43 -0400 Date: Fri, 27 May 2016 20:23:39 +0800 From: Fam Zheng Message-ID: <20160527122339.GB7880@ad.usersys.redhat.com> References: <1464272863-2285-1-git-send-email-alex.bennee@linaro.org> <1464272863-2285-3-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1464272863-2285-3-git-send-email-alex.bennee@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH 2/2] add debian-bootstrap.docker target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, neil.williams@linaro.org, steve.mcintyre@linaro.org, riku.voipio@linaro.org On Thu, 05/26 15:27, Alex Benn=E9e wrote: > Together with some changes to the docker script you can now build an > arbitrary architecture of Debian using debootstrap. To achieve this I > introduce the concept of a HOST_CMD in the docker config file. While > copying the file into workspace the HOST_CMD is run in the docker build > context. This allows debootstrap to set up its first stage before the > container is built. Could you instead introduce the concept of $IMAGE.pre file (in this case debian-bootstrap.pre, aside debian-bootstrap.docker), and exec it in docker.py? It would be much more flexible, and we we wouldn't need to in= ject a custom directive to filter it out. Fam