Received: from eggs.gnu.org ([140.186.70.92]:36614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmmZ1-00088Q-0y for qemu-devel@nongnu.org; Fri, 29 Jul 2011 08:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmmYz-0001aY-WA for qemu-devel@nongnu.org; Fri, 29 Jul 2011 08:53:14 -0400 Received: from mail.freegeek.org ([67.51.72.37]:47333 helo=george.freegeek.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmmYz-0001Wu-Q9 for qemu-devel@nongnu.org; Fri, 29 Jul 2011 08:53:13 -0400 Date: Fri, 29 Jul 2011 05:52:50 -0700 From: Vagrant Cascadian Message-ID: <20110729125250.GJ27917@talon.fglan> References: <1311400070-9051-1-git-send-email-josch@pyneo.org> <20110728084109.GA20285@afflict.kos.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110728084109.GA20285@afflict.kos.to> Subject: Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio , 632192@bugs.debian.org Cc: qemu-devel@nongnu.org, Johannes Schauer , josch On Thu, Jul 28, 2011 at 11:41:09AM +0300, Riku Voipio wrote: > On Sat, Jul 23, 2011 at 07:47:49AM +0200, josch wrote: > > This could be avoided by setting the proposed environment variable > > QEMU_LD_PREFIX to the just > > created debian rootfs. As mentioned earlier, the usage of the -L option > > is not possible in this scenario because qemu-user is only implicitly > > called by the binfmt mechanism. > > What worries me here is that we are beginning to add a enviroment variable > for each and every command line option of qemu linux-user. I think it would > be better to have a wrapper binary to be registered as the binfmt runner. setting up a wrapper makes trivial cross-architecture chroots harder as you'll have to copy two binaries into the chroot, and i'm not sure if it would work at all, as the wrapper will need to somehow emulate it's own interpreter... > Alternatively we should have a generic setup for mapping enviroment variables > to command line options. Now we get special per-option code every time someone > needs to setup a command line option from binfmt. this would seem a bit better alternative to me... live well, vagrant