|
|
|
@ -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'
|
|
|
|
|