Skip to content

Commit

Permalink
Builders: Ensure /etc/mtab is available on Docker mingw64 image build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eht16 committed Oct 1, 2023
1 parent 2e97003 commit f8e81de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builders/Dockerfile.mingw64
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit f8e81de

Please sign in to comment.