diff options
| author | sickcodes <[email protected]> | 2021-10-30 21:25:57 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-10-30 21:25:57 +0000 |
| commit | dca8b28f9f6d5fb040396353a8ed66ced7e7ca47 (patch) | |
| tree | 4e319211f957e2284dfca7b447a2eace77259766 /Dockerfile.monterey | |
| parent | Hard fail, of course, on libguestfs build errors (diff) | |
| download | docker-osx-dca8b28f9f6d5fb040396353a8ed66ced7e7ca47.tar.xz docker-osx-dca8b28f9f6d5fb040396353a8ed66ced7e7ca47.zip | |
Add missing kernel headers
Diffstat (limited to 'Dockerfile.monterey')
| -rw-r--r-- | Dockerfile.monterey | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Dockerfile.monterey b/Dockerfile.monterey index 726b209..4d6ec62 100644 --- a/Dockerfile.monterey +++ b/Dockerfile.monterey @@ -39,13 +39,32 @@ RUN qemu-img create -f qcow2 /home/arch/OSX-KVM/mac_hdd_ng.img "${SIZE}" WORKDIR /home/arch/OSX-KVM +#### libguestfs versioning + +# 5.13+ problem resolved by building the qcow2 against 5.12 using libguestfs-1.44.1-6 + +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 -Syu linux libguestfs --noconfirm \ + sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \ + ; sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \ + ; sudo pacman -U "${KERNEL_HEADERS_PACKAGE_URL}" --noconfirm \ + ; sudo pacman -S mkinitcpio --noconfirm \ + ; sudo libguestfs-test-tool \ + ; sudo rm -rf /var/tmp/.guestfs-* \ ; fi +#### + + # optional --build-arg to change branches for testing ARG BRANCH=master ARG REPO='https://github.com/sickcodes/Docker-OSX.git' |