From 52a5e88a710a7c3f504f6a4982113f617deb3bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 1 Oct 2023 12:58:37 +0200 Subject: [PATCH] Builders: Ensure /etc/mtab is available on Docker mingw64 image build --- builders/Dockerfile.mingw64 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builders/Dockerfile.mingw64 b/builders/Dockerfile.mingw64 index 2dda689..054c263 100644 --- a/builders/Dockerfile.mingw64 +++ b/builders/Dockerfile.mingw64 @@ -24,9 +24,10 @@ LABEL org.opencontainers.image.licenses="GPL-2.0" # install native tools and libraries RUN set -ex && \ - dpkg --add-architecture i386 && \ # ensure /etc/mtab is available, pacman depends on it - ln -sf /proc/mounts /etc/mtab && \ + test -e /etc/mtab || ln -s /proc/mounts /etc/mtab && \ + # add i386 architecture for mingw64 + dpkg --add-architecture i386 && \ # add Debian backports for "pacman" package manager, can be removed after updating this image to Debian Bookworm echo "deb http://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backports.list && \ apt-get update && \