From f8e81de9c6b829c4b9657f66a37b8d0fca6e43b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 26 Sep 2023 23:14:37 +0200 Subject: [PATCH] Builders: Ensure /etc/mtab is available on Docker mingw64 image build When building the image with BuildKit (which is enabled by default in newer Docker versions), /etc/mtab is not created automatically anymore. Since Pacman relies on it, we create the file if necessary. --- builders/Dockerfile.mingw64 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builders/Dockerfile.mingw64 b/builders/Dockerfile.mingw64 index 5681014..054c263 100644 --- a/builders/Dockerfile.mingw64 +++ b/builders/Dockerfile.mingw64 @@ -24,6 +24,9 @@ LABEL org.opencontainers.image.licenses="GPL-2.0" # install native tools and libraries RUN set -ex && \ + # ensure /etc/mtab is available, pacman depends on it + 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 && \