Your message dated Sun, 06 Oct 2019 21:59:00 +0000
with message-id <[email protected]>
and subject line Bug#940162: fixed in mmdebstrap 0.5.0-1
has caused the Debian Bug report #940162,
regarding [mmdebstrap] Allow overriding of binfmt_misc search
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
940162: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940162
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mmdebstrap
Version: 0.4.1-6
Severity: wishlist

Hi,

it seems that mmdebstrap does not work inside a docker container. After
installing docker.io and qemu-user-static on a computer, for example:

# docker run -it --rm debian:unstable
[now inside the container]
# apt update
# apt install qemu-user-static mmdebstrap
# mmdebstrap --architectures=armhf --verbose unstable /tmp/debian.tar.gz
'http://deb.debian.org/debian'
I: automatically chosen mode: root
I: armhf cannot be executed, falling back to qemu-user
E: binfmt_misc not found in /proc/mounts -- not mounted?

Here mmdebstrap fails because it tries to look for the binfmt_misc
filesystem, which is not available inside docker. This is not a problem,
because the support for foreign executable is still configured outside
the container and is available in the container too, but it would be
useful to tell mmdebstrap to accept that binfmt_misc is available even
if it cannot check it.

I can do this manually by commenting out a few lines in mmdebstrap:

>                 #{
>                 #    open my $fh, '<', '/proc/filesystems' or error "failed 
> to open /proc/filesystems: $!";
>                 #    unless (grep /^nodev\tbinfmt_misc$/, (<$fh>)) {
>                 #               error "binfmt_misc not found in 
> /proc/filesystems -- is the module loaded?";
>                 #    }
>                 #    close $fh;
>                 #}
>                 #{
>                 #    open my $fh, '<', '/proc/mounts' or error "failed to 
> open /proc/mounts: $!";
>                 #    unless (grep /^binfmt_misc \/proc\/sys\/fs\/binfmt_misc 
> binfmt_misc/, (<$fh>)) {
>                 #               error "binfmt_misc not found in /proc/mounts 
> -- not mounted?";
>                 #    }
>                 #    close $fh;
>                 #}
>                 #{
>                 #    open my $fh, '-|', '/usr/sbin/update-binfmts', 
> '--display', "qemu-$options->{qemu}" // error "failed to fork(): $!";
>                 #    chomp (my $binfmts = do { local $/; <$fh> });
>                 #    close $fh;
>                 #    if ($binfmts eq '') {
>                 #               error "qemu-$options->{qemu} is not a 
> supported binfmt name";
>                 #    }
>                 #}

Thanks, Giovanni.


--- System information. ---
Architecture: Kernel:       Linux 4.19.0-5-amd64

Debian Release: bullseye/sid
  500 xenial          updates.signal.org   500 unstable-debug
debug.mirrors.debian.org   500 unstable        deb.debian.org   500
testing         deb.debian.org   500 stable          repo.skype.com
500 stable          dl.google.com     1 experimental    deb.debian.org
--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
perl-doc                | 5.28.1-6
apt                     | 1.8.3
perl:any                |

Recommends      (Version) | Installed
=========================-+-===========
arch-test                 | 0.16-2
fakechroot                | 2.19-3.2
fakeroot                  | 1.24-1
mount                     | 2.34-0.1
uidmap                    | 1:4.7-2


Suggests              (Version) | Installed
===============================-+-===========
proot                           | qemu-user                       |
1:4.1-1+b1
qemu-user-static                | 1:4.1-1+b1
binfmt-support                  | 2.2.0-2
dpkg-dev                        | 1.19.7
-- 
Giovanni Mascellani <[email protected]>
Postdoc researcher - Université Libre de Bruxelles

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: mmdebstrap
Source-Version: 0.5.0-1

We believe that the bug you reported is fixed in the latest version of
mmdebstrap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes 'josch' Schauer <[email protected]> (supplier of updated mmdebstrap 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 06 Oct 2019 23:20:58 +0200
Source: mmdebstrap
Binary: mmdebstrap
Architecture: source
Version: 0.5.0-1
Distribution: unstable
Urgency: medium
Maintainer: Johannes 'josch' Schauer <[email protected]>
Changed-By: Johannes 'josch' Schauer <[email protected]>
Description:
 mmdebstrap - create a Debian chroot
Closes: 934199 935258 935260 935266 940162 940173
Changes:
 mmdebstrap (0.5.0-1) unstable; urgency=medium
 .
   * new upstream release
      - rework CLI interface to use explicit "-" for stdin where ambiguous
        instead of unconditionally reading stdin (closes: #934199)
      - also create /var/lib/dpkg/arch in chrootless mode (closes: #935258)
      - don't cleanup qemu-user in chrootless mode (closes: #935260)
      - allow hooks to remove start-stop-daemon (closes: #940173)
      - fix tarball permissions in chrootless mode (closes: #935266)
      - only report binfmt_misc errors if needed (closes: #940162)
   * run testsuite with distribution of the autopkgtest environment
   * drop patches that were applied upstream
   * apply two new patches to accommodate for salsa CI
Checksums-Sha1:
 57868dea3a9ab702b691e745588823361df30d34 2205 mmdebstrap_0.5.0-1.dsc
 e239c33923b2b83d77fa88e010fbec5940f2e5ab 47650 mmdebstrap_0.5.0.orig.tar.gz
 42f584e5db7eab2b130ad6eb344e019a1b874465 6944 mmdebstrap_0.5.0-1.debian.tar.xz
Checksums-Sha256:
 948fade15595be9b8ae99580fbd674d5c146ee7d2059461ef725b97c05397e25 2205 
mmdebstrap_0.5.0-1.dsc
 036b439f767d2c2cee7eaf2034676592dfb48712d8c55dbc63d6977ec95abde5 47650 
mmdebstrap_0.5.0.orig.tar.gz
 b3ff2454adef3d7ca1649285ad0d4071cf170db47a764cadb083ebdf115107db 6944 
mmdebstrap_0.5.0-1.debian.tar.xz
Files:
 5b9a10359bf4f92b935b40c66de83af7 2205 admin optional mmdebstrap_0.5.0-1.dsc
 24947ab3de56c386eef1723d5525a164 47650 admin optional 
mmdebstrap_0.5.0.orig.tar.gz
 35418af3731dba88fd9454b99582242d 6944 admin optional 
mmdebstrap_0.5.0-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAl2aW18ACgkQ8sulx4+9
g+Fqaw/+OM1VDcU8yvcIglbm1056wAs3SWxXCEbCxgTdmkEl2LbNOlbMv8Xe7oXA
DmjlDDWYC3BPl280wDuFqN6hXg1OktlGloEu7aP9eoS8EKbnHIT64Izj9JdkRnXe
duEafWzERN6qruT0gHULuXLBPXeJOcQdmwtrvhmM17z3ILWsRYsbe0stWR0UEWD7
etBGtYRK4lVFja70mCvKshZ3T7uD3kjILeKXReuDl7+XW3HRzU/2du+xQskZ8f83
G6FSFM0YEJwbiJ/Ei8dtCJBPAqq4I3nWs/vRhHsjMkNjgz7WUXMmUwL5lVlGaGRb
aFQeIJmpol6HwloeeDRFxS7ZUS+kfmS5dWcYM2bTRktye3mpW+NOUxtDgeCXY4rq
ld9Pw9VKC7BGPRNmNm/GTadBbEeXVAPtBStjV0Y4KJoUYSzgrW2zF87PIYZ7V4s4
OK8MHqfNBFg2RKQwRRmCJnr6YweY4vEkALubtijliT+eMiTJZViqMvccgSNkG+cX
dvV9kdYd5nsA+toxiHYLfVwswJnJgqLBQ2Yj91tT+eTWBIKEoKPCBsBxqBWid3wr
j5zMNkff6hzV/4Th8hbNlzfiZGsXAwjvypuPVCBcv5CSw8P7NnSChOPo8VtElYeF
Spf5ei1HxMvRxO/SPNk7RloD5+93S+93yVLrIEgfzxY4kPy3qlA=
=N5dF
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to