aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.monterey
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-10-31 00:09:09 +0000
committersickcodes <[email protected]>2021-10-31 00:09:09 +0000
commite6fcfd86dbbb9854ceefe82b49b957edfa19c52b (patch)
tree64d8d2045df8d4fbc3d59cdd07319d7f30fc0dd0 /Dockerfile.monterey
parentOpencore --> OpenCore (typo...) (diff)
downloaddocker-osx-e6fcfd86dbbb9854ceefe82b49b957edfa19c52b.tar.xz
docker-osx-e6fcfd86dbbb9854ceefe82b49b957edfa19c52b.zip
libguestfs games
Diffstat (limited to 'Dockerfile.monterey')
-rw-r--r--Dockerfile.monterey17
1 files changed, 8 insertions, 9 deletions
diff --git a/Dockerfile.monterey b/Dockerfile.monterey
index e09b577..0edba12 100644
--- a/Dockerfile.monterey
+++ b/Dockerfile.monterey
@@ -125,17 +125,16 @@ ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
ENV KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst
+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
-ARG LINUX=true
-
-# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
-RUN if [[ "${LINUX}" == true ]]; then \
- sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \
- ; sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \
- ; sudo libguestfs-test-tool \
- ; sudo rm -rf /var/tmp/.guestfs-* \
- ; fi
+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 \
+ && rm -rf /var/tmp/.guestfs-* \
+ ; libguestfs-test-tool || exit 1
####