Skip to content

Instantly share code, notes, and snippets.

@weivall
Created June 28, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weivall/77dd9822e9ec161b1ef4fadafa11fba1 to your computer and use it in GitHub Desktop.
Save weivall/77dd9822e9ec161b1ef4fadafa11fba1 to your computer and use it in GitHub Desktop.
Create macOS (Mojave) iso
hdiutil create -o /tmp/Mojave.cdr -size 6200m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ Mojave
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment