Skip to content

Commit 0651174

Browse files
authored
Fix debian bookworm (#325)
* Fix debian bookworm * Remove apt upgrade to fix arm64 build QEMU segfault * Prevent systemd configuration to fix arm64 QEMU crash
1 parent 35cd1ae commit 0651174

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build/docker/debian.Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,15 @@ RUN curl -fsSLO https://dot.net/v1/dotnet-install.sh \
9696
&& rm ./dotnet-install.sh \
9797
&& dotnet help
9898

99-
RUN apt -y update && apt -y upgrade && apt -y install ca-certificates && \
100-
apt -y install -t unstable \
99+
# Prevent systemd from being configured to avoid QEMU segfaults on arm64
100+
RUN echo 'exit 101' > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d
101+
102+
RUN apt -y update && apt -y install ca-certificates && \
103+
apt-mark hold systemd && \
104+
apt -y -o Dpkg::Options::="--force-overwrite" \
105+
-o Dpkg::Options::="--force-confold" \
106+
-o Dpkg::Options::="--force-confdef" \
107+
install -t unstable --no-install-recommends \
101108
python3.13 \
102109
python3.13-venv \
103110
python3-pip \

0 commit comments

Comments
 (0)