aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.naked
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-11-29 06:21:14 +0000
committersickcodes <[email protected]>2021-11-29 06:21:14 +0000
commitc9b33ddb62698d8735474dafd774e232c0e15081 (patch)
tree024a18a6397e76778aeb93edbc4b675682092229 /Dockerfile.naked
parentAdd Monterey recovery disk to `:naked`; it is backwards compatible (APFS), ho... (diff)
downloaddocker-osx-c9b33ddb62698d8735474dafd774e232c0e15081.tar.xz
docker-osx-c9b33ddb62698d8735474dafd774e232c0e15081.zip
Rare issue regarding signatures from the arch archives.
Diffstat (limited to 'Dockerfile.naked')
-rw-r--r--Dockerfile.naked9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile.naked b/Dockerfile.naked
index 469976f..0c318b5 100644
--- a/Dockerfile.naked
+++ b/Dockerfile.naked
@@ -217,14 +217,17 @@ ENV KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12
ENV KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst
ENV LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst
+# fixe ad hoc errors from using the arch museum to get libguestfs
+RUN tee -a /etc/pacman.conf <<< "RemoteFileSigLevel = Optional"
+
RUN sudo pacman -Syy \
&& sudo pacman -Rns linux --noconfirm \
; sudo pacman -S mkinitcpio --noconfirm \
- && sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \
- && sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \
+ && sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm || exit 1 \
+ && sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm || exit 1 \
&& rm -rf /var/tmp/.guestfs-* \
&& yes | sudo pacman -Scc \
- ; libguestfs-test-tool || exit 1 \
+ && libguestfs-test-tool || exit 1 \
&& rm -rf /var/tmp/.guestfs-*
####