Dockerfile.isar: Improve binfmt_misc setup
The init script is a bit noisy, so replace it with a direct call of update-binfmts. That tool unfortunately fails to report missing kernel support via a proper error code. Catch that by doing an extra check on the mounted filesystem. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
a8b5c79326
commit
f502f92afe
@ -20,4 +20,4 @@ RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
|
||||
RUN echo "Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy\"" \
|
||||
> /etc/sudoers.d/env_keep && chmod 660 /etc/sudoers.d/env_keep
|
||||
|
||||
RUN sed -i 's|#!/bin/bash|\0\n\n/etc/init.d/binfmt-support start|' /kas/container-entrypoint
|
||||
RUN sed -i 's|#!/bin/bash|\0\n\nupdate-binfmts --enable && [ -f /proc/sys/fs/binfmt_misc/status ]|' /kas/container-entrypoint
|
||||
|
Loading…
Reference in New Issue
Block a user