fixing the startup.nsh situation

for loop and be done with it
This commit is contained in:
img2tab
2018-11-04 22:12:37 +00:00
committed by GitHub
parent f19b03873b
commit 4cd2ff35da
+7 -19
View File
@@ -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\AppleUiSupport.efi'; sendkeys
kbstring='load fs0:\EFI\driver\ApfsDriverLoader.efi'; sendkeys kbstring='load fs0:\EFI\driver\ApfsDriverLoader.efi'; sendkeys
kbstring='map -r'; sendkeys kbstring='map -r'; sendkeys
kbstring='fs1:'; sendkeys kbstring='for %a run (1 5)'; sendkeys
kbstring='cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys kbstring=' fs%a:'; sendkeys
kbstring='boot.efi'; sendkeys kbstring=' cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys
kbstring='cd "System\Library\CoreServices"'; sendkeys kbstring=' boot.efi'; sendkeys
kbstring='boot.efi'; sendkeys kbstring=' cd "System\Library\CoreServices"'; sendkeys
kbstring='fs2:'; sendkeys kbstring=' boot.efi'; sendkeys
kbstring='cd "macOS Install Data\Locked Files\Boot Files"'; sendkeys kbstring='endfor'; 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
kbspecial="ESC : w q ENTER"; sendspecial kbspecial="ESC : w q ENTER"; sendspecial
# Shut down the virtual machine # Shut down the virtual machine
@@ -512,8 +504,4 @@ fi
echo "" echo ""
echo "macOS Mojave 10.14.1 installation should complete in a few minutes." echo "macOS Mojave 10.14.1 installation should complete in a few minutes."
echo "" 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." echo "That's it. Enjoy your virtual machine."