[buildd-tools-devel] Bug#677811: Bug#677811: schroot: setup.d/15binfmt ironically breaks binfmt support

Roger Leigh rleigh at codelibre.net
Tue Jul 10 18:36:43 UTC 2012


On Tue, Jul 10, 2012 at 11:28:43AM -0700, Vagrant Cascadian wrote:
> On Sat, Jun 16, 2012 at 05:19:59PM -0700, Vagrant Cascadian wrote:
> > On Sun, Jun 17, 2012 at 12:29:02AM +0200, Julian Andres Klode wrote:
> > > On Sat, Jun 16, 2012 at 11:13:03PM +0100, Roger Leigh wrote:
> > > > On Sat, Jun 16, 2012 at 02:57:26PM -0700, Vagrant Cascadian wrote:
> > > It turns out that mount has changed behavior recently (but man-pages document
> > > the one that worked until now). Replacing
> > > 	mount -o remount,ro "$dst"
> > > by
> > > 	mount -o remount,ro,bind "$dst"
> > > fixes this. A bug report against mount seems to be a good
> > > idea.
> > 
> > I can confirm that that fixes it.
> > 
> > 
> > > The best solution in my opinion would be to make qemu-user-static
> > > multi-arch and add the native architecture to the chroot, and then
> > > install qemu-user-static for the native architecture inside the
> > > chroot.
> > 
> > I have mixed feelings on this approach... it adds some overhead to the chroot 
> > to support foreign architectures in apt and installing the whole of 
> > qemu-user-static, instead of dynamically including the binary when neeeded.
> 
> It seems like it should be patched to work with the bind mounts (as above), or 
> removed, as currently it breaks the ability to install a foreign-architecture 
> qemu-user-static in the chroot manually, so neither approach works. :(

I'm happy for this to be fixed, but I'm not personally too familiar
with the qemu stuff.  Any patches or suggestions for the best
approach to take here would be much appreciated.  I'd very much
like to have this fixed in wheezy soon.

(I'm afraid I'm away until next Monday.)


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800





More information about the Buildd-tools-devel mailing list