Created
September 26, 2018 14:34
-
-
Save jordigg/7ff0abe16b02349d5bcde1e4ffb8dccf to your computer and use it in GitHub Desktop.
How to create an ISO for MacOS Mojave through the command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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