Last active
October 9, 2019 16:58
-
-
Save corysolovewicz/11e74c598403210bd838584222b5c9cb to your computer and use it in GitHub Desktop.
Create bootable ISO from macOS Mojave Installer
This file contains 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
# https://support.apple.com/en-us/HT201372 | |
# download macOS Mojave | |
# https://itunes.apple.com/us/app/macos-mojave/id1398502828?mt=12 | |
# create blank image and put in /tmp directory | |
hdiutil create -o /tmp/Mojave.cdr -size 6100m -layout SPUD -fs HFS+J | |
# mount blank image at install_build | |
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
# run the createinstallmedia on the target /Volumes/install_build | |
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build | |
# move populated image to Desktop and name it InstallSystem.dmg | |
mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
# unmount Mojave install | |
hdiutil detach /Volumes/Install\ macOS\ Mojave | |
# convert dmg to iso | |
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