From 6b025e4910b435f46ee253ca8ede3b61eebaa7c4 Mon Sep 17 00:00:00 2001 From: Florian Bezdeka Date: Tue, 14 Jul 2020 18:20:33 +0200 Subject: [PATCH] kas-docker: Podman: Fixing isar builds failing with exec format errors When trying to run kas-docker with --isar on podman the build fails with some "exec format" errors when the target has a different architecture than the host. The reason is that /proc/sys/fs/binfmt_misc is not mounted as expected inside the container. The way the /proc filesystem is mounted seems to differ between podman and docker. See [1] for the podman issue tracker. This is a temporary fix and should be removed when the upstream issue was resolved. [1] https://github.com/containers/podman/issues/4725 Signed-off-by: Florian Bezdeka Signed-off-by: Jan Kiszka --- kas-docker | 1 + 1 file changed, 1 insertion(+) diff --git a/kas-docker b/kas-docker index 53cfce3..1bc3417 100755 --- a/kas-docker +++ b/kas-docker @@ -116,6 +116,7 @@ while [ $# -gt 0 ]; do podman) # sudo is needed for a privileged podman container DOCKER_COMMAND="sudo ${DOCKER_COMMAND}" + ISAR_ARGS="${ISAR_ARGS} --pid=host" ;; esac