removed checks from prepare_macos_installation_files
This commit is contained in:
@@ -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.85.4
|
# version 0.85.5
|
||||||
|
|
||||||
# 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,
|
||||||
@@ -354,7 +354,6 @@ fi
|
|||||||
function prepare_macos_installation_files() {
|
function prepare_macos_installation_files() {
|
||||||
print_dimly "stage: prepare_macos_installation_files"
|
print_dimly "stage: prepare_macos_installation_files"
|
||||||
# Find the correct download URL in the Apple catalog
|
# Find the correct download URL in the Apple catalog
|
||||||
if [[ ! ( -s "${macOS_release_name}_BaseSystem.chunklist" && -s "${macOS_release_name}_InstallInfo.plist" && -s "${macOS_release_name}_AppleDiagnostics.dmg" && -s "${macOS_release_name}_AppleDiagnostics.chunklist" && -s "${macOS_release_name}_BaseSystem.dmg" && -s "${macOS_release_name}_InstallESDDmg.pkg" ) ]]; then
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Downloading Apple macOS ${macOS_release_name} software update catalog"
|
echo "Downloading Apple macOS ${macOS_release_name} software update catalog"
|
||||||
wget "${sucatalog}" \
|
wget "${sucatalog}" \
|
||||||
@@ -408,15 +407,12 @@ if [[ ! ( -s "${macOS_release_name}_BaseSystem.chunklist" && -s "${macOS_release
|
|||||||
${wgetargs} \
|
${wgetargs} \
|
||||||
--output-document "${macOS_release_name}_${filename}"
|
--output-document "${macOS_release_name}_${filename}"
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -s "${macOS_release_name}_InstallESD.part00" ]; then
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Splitting the several-GB InstallESDDmg.pkg into 1GB parts because"
|
echo "Splitting the several-GB InstallESDDmg.pkg into 1GB parts because"
|
||||||
echo "VirtualBox hasn't implemented UDF/HFS VISO support yet and macOS"
|
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 "doesn't support ISO 9660 Level 3 with files larger than 2GB."
|
||||||
split --verbose -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
|
if [[ ! -s "ApfsDriverLoader.efi" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user