Add a check for binfmt_misc (#1236)

Closes #1223.
This commit is contained in:
Alexander 2018-02-17 21:41:54 +01:00 committed by Oliver Smith
parent 886d19620e
commit 57b45a4798
2 changed files with 19 additions and 0 deletions

View file

@ -20,6 +20,7 @@ import os
import logging
import pmb.helpers.run
import pmb.helpers.other
import pmb.parse
import pmb.parse.arch
@ -35,6 +36,7 @@ def register(args, arch):
arch_debian = pmb.parse.arch.alpine_to_debian(arch)
if is_registered(arch_debian):
return
pmb.helpers.other.check_binfmt_misc(args)
pmb.chroot.apk.install(args, ["qemu-user-static-repack",
"qemu-user-static-repack-binfmt"])
info = pmb.parse.binfmt_info(args, arch_debian)