Skip to content

Instantly share code, notes, and snippets.

@jordigg
Created September 26, 2018 14:34
Show Gist options
  • Save jordigg/7ff0abe16b02349d5bcde1e4ffb8dccf to your computer and use it in GitHub Desktop.
Save jordigg/7ff0abe16b02349d5bcde1e4ffb8dccf to your computer and use it in GitHub Desktop.
How to create an ISO for MacOS Mojave through the command line
hdiutil create -o /tmp/mojave.cdr.dmg -size 7130m -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
hdiutil detach /Volumes/Install\ macOS\ Mojave
mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/mojave.iso
mv ~/Desktop/mojave.iso.cdr ~/Desktop/mojave.iso
rm ~/Desktop/InstallSystem.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment