diff --git a/Dockerfile b/Dockerfile index 550dbdc..34fe9dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,10 +48,8 @@ RUN apt-get update && \ git-buildpackage pristine-tar sbuild schroot \ umoci skopeo && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - -RUN sed -i 's|\tGOSU="gosu builder"|\0\n\tsbuild-adduser builder >/dev/null 2>\&1|' /kas/container-entrypoint -RUN sed -i 's|#!/bin/bash|\0\n\nupdate-binfmts --enable \&\& [ -f /proc/sys/fs/binfmt_misc/status ]|' /kas/container-entrypoint + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ + sed -i 's|# kas-isar: ||g' /kas/container-entrypoint FROM kas-base as kas diff --git a/container-entrypoint b/container-entrypoint index 7f465e9..2de4346 100755 --- a/container-entrypoint +++ b/container-entrypoint @@ -1,5 +1,7 @@ #!/bin/bash +# kas-isar: update-binfmts --enable && [ -f /proc/sys/fs/binfmt_misc/status ] + if mount | grep -q "on / type aufs"; then cat <&2 WARNING: Generation of wic images will fail! @@ -32,6 +34,8 @@ else fi GOSU="gosu builder" + + # kas-isar: sbuild-adduser builder >/dev/null 2>&1 fi if [ "$PWD" = / ]; then