Package: qemu-user-static Version: 1:2.8+dfsg-6 Severity: normal Dear Maintainer,
* What led up to the situation? Attempting to build an `arm32v7/debian` derivative image with Docker's distribution of docker-ce(which fails with out-of-the-box Debian 9). * Other symptoms: The systemd-binfmt.service file fails to activate properly due to the missing directory contents listed. ``` computermouth@desktop:~$ systemctl status systemd-binfmt ● systemd-binfmt.service - Set Up Additional Binary Formats Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static; vendor preset: enabled) Active: inactive (dead) since Thu 2017-07-13 00:06:51 PDT; 5s ago Condition: start condition failed at Thu 2017-07-13 00:06:51 PDT; 5s ago ├─ ConditionDirectoryNotEmpty=|/lib/binfmt.d was not met ├─ ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d was not met ├─ ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d was not met ├─ ConditionDirectoryNotEmpty=|/etc/binfmt.d was not met └─ ConditionDirectoryNotEmpty=|/run/binfmt.d was not met Docs: man:systemd-binfmt.service(8) man:binfmt.d(5) https://www.kernel.org/doc/Documentation/binfmt_misc.txt Process: 12402 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=0/SUCCESS) Main PID: 12402 (code=exited, status=0/SUCCESS) CPU: 0 ``` * What exactly did you do that was effective? Fedora 26 includes the following files with their qemu-user-static package: ``` qemu-aarch64-static.conf qemu-alpha-static.conf qemu-armeb-static.conf qemu-arm-static.conf qemu-cris-static.conf qemu-m68k-static.conf qemu-microblazeel-static.conf qemu-microblaze-static.conf qemu-mips64el-static.conf qemu-mips64-static.conf qemu-mipsel-static.conf qemu-mips-static.conf qemu-ppc64abi32-static.conf qemu-ppc64-static.conf qemu-ppc-static.conf qemu-s390x-static.conf qemu-sh4eb-static.conf qemu-sh4-static.conf qemu-sparc32plus-static.conf qemu-sparc64-static.conf qemu-sparc-static.conf ``` These files include the binfmt magic strings for instruction translation. I.e: ``` computermouth@desktop:/lib/binfmt.d$ cat qemu-arm-static.conf :qemu- arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\xff\xff:/usr/bin/qemu- arm-static:F ``` I copied those to my Debian host and viola! I can now build Docker containers for different architectures. * Notes I can't seem to find the source for these files in either Debian's or Fedora's package source, nor in the upstream qemu source. -- System Information: Debian Release: 9.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) qemu-user-static depends on no packages. Versions of packages qemu-user-static recommends: ii binfmt-support 2.1.6-2 Versions of packages qemu-user-static suggests: ii sudo 1.8.19p1-2.1 -- no debconf information