From d891fd57964481062d45aaa0eae1f71fab9679b3 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Thu, 30 Jan 2020 01:14:04 +0200 Subject: [PATCH] Catalina 10.15.3, split --verbose, "verbose" cat --- README.md | 2 +- macos-guest-virtualbox.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a61383e..ce0bf07 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is a Bash script that creates a VirtualBox guest macOS virtual machine with The script is semi-automatic and requires a little user interaction. A default install only requires the user to sit patiently and, less than ten times, press enter when prompted. The script doesn't install any closed-source additions or extra bootloaders. Tested on Cygwin. Works on macOS and WSL, should work on most Linux distros. ### macOS Mojave (10.14) and High Sierra (10.13) currently supported -#### macOS Catalina 10.15.2 fails to boot on VirtualBox as of the date of its release. Earlier versions of Catalina work, but they are not currently being distributed by Apple's software update servers, from which the script fetches the installer. A workaround for Catalina 10.15.2 is [available](https://github.com/myspaghetti/macos-guest-virtualbox/issues/134#issuecomment-578764413) involving using earlier versions of `boot.efi`. +#### macOS Catalina 10.15.2 and 10.15.3 fail to boot on VirtualBox. Earlier versions of Catalina work, but they are not currently being distributed by Apple's software update servers, from which the script fetches the installer. A workaround for Catalina 10.15.2 and 10.15.3 is [available](https://github.com/myspaghetti/macos-guest-virtualbox/issues/134#issuecomment-578764413) involving using earlier versions of `boot.efi`. ## Documentation Documentation can be viewed by executing the command `./macos-guest-virtualbox.sh documentation` diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 4012643..0fe890a 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -406,14 +406,13 @@ if [[ ! ( -s "${macOS_release_name}_BaseSystem.chunklist" && -s "${macOS_release fi if [ ! -s "${macOS_release_name}_InstallESD.part00" ]; then + echo "" echo "Splitting the several-GB InstallESDDmg.pkg into 1GB parts because" echo "VirtualBox hasn't implemented UDF/HFS VISO support yet and macOS" echo "doesn't support ISO 9660 Level 3 with files larger than 2GB." - echo "" - split -a 2 -d -b 1000000000 "${macOS_release_name}_InstallESDDmg.pkg" "${macOS_release_name}_InstallESD.part" + split --verbose -a 2 -d -b 1000000000 "${macOS_release_name}_InstallESDDmg.pkg" "${macOS_release_name}_InstallESD.part" fi - if [[ ! -s "ApfsDriverLoader.efi" ]]; then echo "" echo "Downloading open-source APFS EFI drivers used for VirtualBox 6.0 and 5.2" @@ -715,7 +714,8 @@ kbstring='asr restore --source "/Volumes/'"${macOS_release_name:0:5}-files"'/Bas 'mkdir -p "${install_path}" && cd "/Volumes/'"${macOS_release_name:0:5}-files/"'" && '\ 'cp *.chunklist *.plist *.dmg "${install_path}" && '\ 'echo "" && echo "Copying the several-GB InstallESD.dmg to the installer app directory" && echo "Please wait" && '\ -'cat InstallESD.part* > "${install_path}/InstallESD.dmg" && '\ +'rm -f "${install_path}/InstallESD.dmg" ; '\ +'for part in InstallESD.part*; do echo "Concatenating ${part}"; cat "${part}" >> "${install_path}/InstallESD.dmg"; done && '\ 'sed -i.bak -e "s/InstallESDDmg\.pkg/InstallESD.dmg/" -e "s/pkg\.InstallESDDmg/dmg.InstallESD/" "${install_path}InstallInfo.plist" && '\ 'sed -i.bak2 -e "/InstallESD\.dmg/{n;N;N;N;d;}" "${install_path}InstallInfo.plist" && ' send_keys