Catalina 10.15.3, split --verbose, "verbose" cat

This commit is contained in:
Jack
2020-01-30 01:14:04 +02:00
parent e17df50b5c
commit d891fd5796
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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`
+4 -4
View File
@@ -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