You've already forked Docker-OSX
mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2025-07-02 02:42:37 -05:00
Major serial number runtime generation and override changes.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
#
|
||||
# Title: Mac on Docker (Docker-OSX) [AUTOINSTALL]
|
||||
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||
# Version: 3.1
|
||||
# Version: 3.2
|
||||
# License: GPLv3+
|
||||
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||
#
|
||||
@ -140,6 +140,30 @@ ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a secur
|
||||
CMD echo "${BOILERPLATE}" \
|
||||
&& [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
||||
; [[ "${NOPICKER}" == true ]] && mv ./Launch-nopicker.sh ./Launch.sh \
|
||||
; [[ "${GENERATE_UNIQUE}" == true ]] \
|
||||
&& ./Docker-OSX/custom/generate-unique-machine-values.sh \
|
||||
--count 1 \
|
||||
--tsv ./serial.tsv \
|
||||
--bootdisks \
|
||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||
--output-env "${ENV:=/env}" \
|
||||
&& source "${ENV}" \
|
||||
; [[ "${GENERATE_SPECIFIC}" == true ]] \
|
||||
&& source /env \
|
||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||
--model "${DEVICE_MODEL}" \
|
||||
--serial "${SERIAL}" \
|
||||
--board-serial "${BOARD_SERIAL}" \
|
||||
--uuid "${UUID}" \
|
||||
--mac-address "${MAC_ADDRESS}" \
|
||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||
; case "$(file --brief /bootdisk)" in \
|
||||
QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
|
||||
; sudo chown "$(id -u)":"$(id -g)" "${BOOTDISK}" 2>/dev/null || true \
|
||||
;; \
|
||||
directory* ) export BOOTDISK=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \
|
||||
;; \
|
||||
esac \
|
||||
; [[ "${DISPLAY}" = ':99' ]] && { \
|
||||
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 0.1 ; done \
|
||||
|
Reference in New Issue
Block a user