qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment vari


From: Vagrant Cascadian
Subject: Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment variable
Date: Fri, 29 Jul 2011 05:52:50 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]