startup.nsh compatible with VirtualBox 6.0.14
VirtualBox version 6.0.14 aborts efi scripts on failure, apparently.
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/img2tab/macos-guest-virtualbox
|
# url: https://github.com/img2tab/macos-guest-virtualbox
|
||||||
# version 0.75.8
|
# version 0.76.0
|
||||||
|
|
||||||
# Requirements: 40GB available storage on host
|
# Requirements: 40GB available storage on host
|
||||||
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
||||||
@@ -408,11 +408,14 @@ load fs0:\EFI\driver\AppleUiSupport.efi
|
|||||||
load fs0:\EFI\driver\ApfsDriverLoader.efi
|
load fs0:\EFI\driver\ApfsDriverLoader.efi
|
||||||
map -r
|
map -r
|
||||||
for %a run (1 5)
|
for %a run (1 5)
|
||||||
fs%a:
|
if exist "fs%a:\macOS Install Data\Locked Files\Boot Files\boot.efi" then
|
||||||
cd "macOS Install Data\Locked Files\Boot Files"
|
"fs%a:\macOS Install Data\Locked Files\Boot Files\boot.efi"
|
||||||
boot.efi
|
endif
|
||||||
cd "System\Library\CoreServices"
|
endfor
|
||||||
boot.efi
|
for %a run (1 5)
|
||||||
|
if exist "fs%a:\System\Library\CoreServices\boot.efi" then
|
||||||
|
"fs%a:\System\Library\CoreServices\boot.efi"
|
||||||
|
endif
|
||||||
endfor' > "startup.nsh"
|
endfor' > "startup.nsh"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user