From 4cd2ff35da6359b1c3d8981b3f5141d5d7a22284 Mon Sep 17 00:00:00 2001 From: img2tab <31696646+img2tab@users.noreply.github.com> Date: Sun, 4 Nov 2018 22:12:37 +0000 Subject: [PATCH] fixing the startup.nsh situation for loop and be done with it --- macos_okiomov.sh | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/macos_okiomov.sh b/macos_okiomov.sh index 3292bb7..0bc020f 100644 --- a/macos_okiomov.sh +++ b/macos_okiomov.sh @@ -465,21 +465,13 @@ kbstring='load fs0:\EFI\driver\AppleImageLoader.efi'; sendkeys kbstring='load fs0:\EFI\driver\AppleUiSupport.efi'; sendkeys kbstring='load fs0:\EFI\driver\ApfsDriverLoader.efi'; sendkeys kbstring='map -r'; sendkeys -kbstring='fs1:'; sendkeys -kbstring='cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys -kbstring='boot.efi'; sendkeys -kbstring='cd "System\Library\CoreServices"'; sendkeys -kbstring='boot.efi'; sendkeys -kbstring='fs2:'; sendkeys -kbstring='cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys -kbstring='boot.efi'; sendkeys -kbstring='cd "System\Library\CoreServices"'; sendkeys -kbstring='boot.efi'; sendkeys -kbstring='fs3:'; sendkeys -kbstring='cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys -kbstring='boot.efi'; sendkeys -kbstring='cd "System\Library\CoreServices"'; sendkeys -kbstring='boot.efi'; sendkeys +kbstring='for %a run (1 5)'; sendkeys +kbstring=' fs%a:'; sendkeys +kbstring=' cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys +kbstring=' boot.efi'; sendkeys +kbstring=' cd "System\Library\CoreServices"'; sendkeys +kbstring=' boot.efi'; sendkeys +kbstring='endfor'; sendkeys kbspecial="ESC : w q ENTER"; sendspecial # Shut down the virtual machine @@ -512,8 +504,4 @@ fi echo "" echo "macOS Mojave 10.14.1 installation should complete in a few minutes." echo "" -echo "UEFI cleanup: after macOS successfully starts up, the two incorrect" -echo "fs: guesses in the UEFI startup.nsh may be manually removed, though they" -echo "generally have no effect except for the error messages at boot." -echo "" echo "That's it. Enjoy your virtual machine."