From 0642d90ac73af4d2f7ebbc4083529fdfc58da0ae Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Sat, 19 Oct 2019 19:05:49 +0300 Subject: [PATCH] startup.nsh compatible with VirtualBox 6.0.14 VirtualBox version 6.0.14 aborts efi scripts on failure, apparently. --- macos-guest-virtualbox.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 2a9ffa9..c506e6d 100644 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Semi-automatic installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/img2tab/macos-guest-virtualbox -# version 0.75.8 +# version 0.76.0 # Requirements: 40GB available storage on host # Dependencies: bash >= 4.0, unzip, wget, dmg2img, @@ -408,11 +408,14 @@ load fs0:\EFI\driver\AppleUiSupport.efi load fs0:\EFI\driver\ApfsDriverLoader.efi map -r for %a run (1 5) - fs%a: - cd "macOS Install Data\Locked Files\Boot Files" - boot.efi - cd "System\Library\CoreServices" - boot.efi + if exist "fs%a:\macOS Install Data\Locked Files\Boot Files\boot.efi" then + "fs%a:\macOS Install Data\Locked Files\Boot Files\boot.efi" + endif +endfor +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" }