Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # This assumes that the ~6GB mojave installer is in the /Applications folder.
  4. # If it's not, just open the App Store, search Mojave, and you can download the installer file from there.
  5.  
  6. hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J
  7. hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave
  8. sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave
  9. mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
  10. hdiutil detach /Volumes/Install\ macOS\ Mojave
  11. hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/mojave.iso
  12. mv ~/Desktop/mojave.iso.cdr ~/Desktop/mojave.iso
  13. rm ~/Desktop/InstallSystem.dmg
  14.  
  15. # Now there should be an ISO on your desktop called mojave.iso
  16. # Once mojave is installed, in order to install VMware tools to enable full-screen resolution, run:
  17. sudo spctl --master-enable
  18. # on the guest OS. That will disable Gatekeeper and allow any apps and the necessary kexts to run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement