From d79334864ca9436affeb2cb917a60a586ba14e41 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 13 Dec 2024 23:32:06 +0100 Subject: [PATCH] build-aux: use an init process for the nix container Signed-off-by: Giuseppe Scrivano --- build-aux/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/release.sh b/build-aux/release.sh index bdbe7964cb..5cf8ca088d 100755 --- a/build-aux/release.sh +++ b/build-aux/release.sh @@ -46,13 +46,13 @@ mkdir -p /nix NIX_ARGS="--extra-experimental-features nix-command --print-build-logs --option cores $(nproc) --option max-jobs $(nproc)" for ARCH in amd64 arm64 ppc64le riscv64 s390x; do - $RUNTIME run --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \ + $RUNTIME run --init --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \ nix $NIX_ARGS build --max-jobs auto --file nix/default-${ARCH}.nix cp ./result/bin/crun $OUTDIR/crun-$VERSION-linux-${ARCH} rm -rf result - $RUNTIME run --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \ + $RUNTIME run --init --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \ nix $NIX_ARGS build --max-jobs auto --file nix/default-${ARCH}.nix --arg enableSystemd false cp ./result/bin/crun $OUTDIR/crun-$VERSION-linux-${ARCH}-disable-systemd