if-ed out a fix that's not an issue in VBox 6.1
This commit is contained in:
+15
-13
@@ -2,7 +2,7 @@
|
|||||||
# Semi-automatic installer of macOS on VirtualBox
|
# Semi-automatic installer of macOS on VirtualBox
|
||||||
# (c) myspaghetti, licensed under GPL2.0 or higher
|
# (c) myspaghetti, licensed under GPL2.0 or higher
|
||||||
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
||||||
# version 0.80.3
|
# version 0.80.4
|
||||||
|
|
||||||
# Requirements: 40GB available storage on host
|
# Requirements: 40GB available storage on host
|
||||||
# Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img,
|
# Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img,
|
||||||
@@ -1079,18 +1079,20 @@ kbstring='background_pid="$(ps | grep '"'"' sh$'"'"' | cut -d '"'"' '"'"' -f 3)"
|
|||||||
'./startosinstall --agreetolicense --pidtosignal ${background_pid} --rebootdelay 500 --volume "/Volumes/'"${vmname}"'"'
|
'./startosinstall --agreetolicense --pidtosignal ${background_pid} --rebootdelay 500 --volume "/Volumes/'"${vmname}"'"'
|
||||||
send_keys
|
send_keys
|
||||||
send_enter
|
send_enter
|
||||||
printf "${highlight_color}"'When the VM reboots, press enter'"${default_color}"' or alternatively
|
if [[ ( "${vbox_version:0:1}" -lt 6 ) || ( "${vbox_version:0:1}" = 6 && "${vbox_version:2:1}" = 0 ) ]]; then
|
||||||
manually detach the virtual storage device "'"Install ${macOS_release_name}.vdi"'"
|
printf "${highlight_color}"'When the VM reboots, press enter'"${default_color}"' or alternatively
|
||||||
to avoid booting into the installer environment again.'
|
manually detach the virtual storage device "'"Install ${macOS_release_name}.vdi"'"
|
||||||
clear_input_buffer_then_read
|
to avoid booting into the installer environment again.'
|
||||||
VBoxManage controlvm "${vmname}" poweroff >/dev/null 2>&1
|
clear_input_buffer_then_read
|
||||||
for (( i=10; i>5; i-- )); do printf ' \r'"${i}"; sleep 0.5; done
|
VBoxManage controlvm "${vmname}" poweroff >/dev/null 2>&1
|
||||||
VBoxManage storagectl macOS --remove --name SATA >/dev/null 2>&1
|
for (( i=10; i>5; i-- )); do printf ' \r'"${i}"; sleep 0.5; done
|
||||||
VBoxManage storagectl "${vmname}" --add sata --name SATA --hostiocache on >/dev/null 2>&1
|
VBoxManage storagectl macOS --remove --name SATA >/dev/null 2>&1
|
||||||
VBoxManage storageattach "${vmname}" --storagectl SATA --port 0 \
|
VBoxManage storagectl "${vmname}" --add sata --name SATA --hostiocache on >/dev/null 2>&1
|
||||||
--type hdd --nonrotational on --medium "${vmname}.vdi"
|
VBoxManage storageattach "${vmname}" --storagectl SATA --port 0 \
|
||||||
echo ""
|
--type hdd --nonrotational on --medium "${vmname}.vdi"
|
||||||
for (( i=5; i>0; i-- )); do printf ' \r'"${i}"; sleep 0.5; done
|
echo ""
|
||||||
|
for (( i=5; i>0; i-- )); do printf ' \r'"${i}"; sleep 0.5; done
|
||||||
|
fi
|
||||||
printf '
|
printf '
|
||||||
|
|
||||||
'"${highlight_color}"'That'"'"'s it! Enjoy your virtual machine.'"${default_color}"'\n'
|
'"${highlight_color}"'That'"'"'s it! Enjoy your virtual machine.'"${default_color}"'\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user