From 81682df5febf936cbadd889b8ec46c73b8d1466e Mon Sep 17 00:00:00 2001 From: sickcodes Date: Tue, 6 Oct 2020 17:12:45 +0000 Subject: [PATCH] [QOL] Launch without having to press anything at the boot menu (see readme) --- Dockerfile | 6 +++++- README.md | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 17954eb..6ffcb31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -176,6 +176,11 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '-vga vmware \' \ && tee -a Launch.sh <<< '${EXTRA:-}' +# docker exec containerid mv ./Launch-nopicker.sh ./Launch.sh +RUN grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh \ + && chmod +x ./Launch-nopicker.sh \ + && sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh + ENV USER arch ENV DISPLAY=:0.0 @@ -191,4 +196,3 @@ CMD ./enable-ssh.sh && envsubst < ./Launch.sh | bash # virt-manager mode: eta son # CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager # CMD virsh define <(envsubst < macOS-libvirt-Catalina.xml) && virt-manager || virt-manager - diff --git a/README.md b/README.md index 4835944..2a9701d 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,23 @@ ssh fullname@localhost -p 50922 ``` +# Autoboot into OSX after you've installed everything + +```bash +# find you containerID +docker ps + +# move the no picker script on top of the Launch script +# NEW CONTAINERS +docker exec containerID mv ./Launch-nopicker.sh ./Launch.sh + +# LEGACY CONTAINERS +docker exec containerID bash -c "grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh +chmod +x ./Launch-nopicker.sh +sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh +" +``` + # Requirements: KVM on the host Need to turn on hardware virtualization in your BIOS, very easy to do.