Skip to content

Commit

Permalink
Install archlinux-keyring and archlinuxarm-keyring
Browse files Browse the repository at this point in the history
The dependency direction between archlinux[arm]-keyring and pacman has been
reversed, so it needs to be installed explicitly. This makes the normal Arch
Linux keyring available on ARM, so we need to populate the ARM keyring even if
the regular one succeeds.
  • Loading branch information
lopsided98 committed Oct 7, 2022
1 parent a28156b commit 95cb869
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN mkdir -p /archlinux/rootfs
COPY pacstrap-docker /archlinux/

RUN ./pacstrap-docker /archlinux/rootfs \
bash sed gzip pacman && \
bash sed gzip pacman archlinux-keyring && \
# Install Arch Linux ARM keyring if available
(pacman -r /archlinux/rootfs -S --noconfirm archlinuxarm-keyring || true) && \
# Remove current pacman database, likely outdated very soon
rm rootfs/var/lib/pacman/sync/*

Expand All @@ -23,6 +25,7 @@ ENV LANG=en_US.UTF-8

RUN locale-gen && \
pacman-key --init && \
(pacman-key --populate archlinux || pacman-key --populate archlinuxarm)
pacman-key --populate archlinux && \
(pacman-key --populate archlinuxarm || true)

CMD ["/usr/bin/bash"]

0 comments on commit 95cb869

Please sign in to comment.