Skip to content

Instantly share code, notes, and snippets.

@gerrior
Forked from agentsim/highsierra_bootable.sh
Last active May 13, 2018 02:43
Show Gist options
  • Save gerrior/6734954fdc11e12633a82bd1b994cd76 to your computer and use it in GitHub Desktop.
Save gerrior/6734954fdc11e12633a82bd1b994cd76 to your computer and use it in GitHub Desktop.
Create bootable ISO from HighSierra Installer
#!/bin/bash
#
# Save as a text file; open terminal; enter the command line: sh highsierra_bootable.sh
#
# Used on "Install macOS High Sierra" version 10.13.3
#
# This ISO was used to create a fresh Virtual Machine in vSphere
hdiutil create -o /tmp/HighSierra.cdr -size 5530m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/macOS_High_Sierra_10.13.3.iso
rm ~/Desktop/InstallSystem.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment