Skip to content

Instantly share code, notes, and snippets.

@eddieh
Created November 29, 2021 07:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddieh/843cf08c05ad042a798928783b05b48f to your computer and use it in GitHub Desktop.
Save eddieh/843cf08c05ad042a798928783b05b48f to your computer and use it in GitHub Desktop.
Convert macOS App Store Installer to a Bootable ISO

Convert macOS App Store Installer to a Bootable ISO

IMG=Catalina
APPRES="/Applications/Install macOS Catalina.app/Contents/Resources"
hdiutil create -volname $IMG -size 12g -layout SPUD -fs HFS+J -attach -ov ~/$IMG.dmg
sudo "$APPRES"/createinstallmedia --nointeraction --volume /Volumes/$IMG
hdiutil detach "/Volumes/Install macOS Catalina"
hdiutil convert ~/$IMG.dmg -format UDTO -o ~/$IMG.iso
mv ~/$IMG.iso.cdr ~/$IMG.iso
rm ~/$IMG.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment