Skip to content

Instantly share code, notes, and snippets.

@shazron
Created June 30, 2022 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shazron/126632f302aa1fe88e0e3ff906ba29f6 to your computer and use it in GitHub Desktop.
Save shazron/126632f302aa1fe88e0e3ff906ba29f6 to your computer and use it in GitHub Desktop.
Create a macOS Monterey .iso file from the .app installer
# adapted from https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/
hdiutil create -o /tmp/Monterey -size 13700m -volname Monterey -layout SPUD -fs HFS+J
hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction
hdiutil detach /volumes/Install\ macOS\ Monterey
hdiutil convert /tmp/Monterey.dmg -format UDTO -o ~/Desktop/Monterey.cdr
mv ~/Desktop/Monterey.cdr ~/Desktop/Monterey.iso
rm /tmp/Monterey.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment