Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save corysolovewicz/03ce1bc3ac13ce3e3c0b253900a95324 to your computer and use it in GitHub Desktop.
Save corysolovewicz/03ce1bc3ac13ce3e3c0b253900a95324 to your computer and use it in GitHub Desktop.
Create bootable ISO from macOS High Sierra Installer
# Download macOS High Sierra Installer
# https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
# create blank image and put in /tmp directory
hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J
# mount blank image at install_build
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
# run the createinstallmedia on the target /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
# move populated image to Desktop and name it InstallSystem.dmg
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg
# unmount High Sierra install
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
# convert dmg to iso
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment