Skip to content

Instantly share code, notes, and snippets.

@src256
Created January 13, 2022 05:01
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 src256/f527da4ca4e0fcd8c24256f5ab864403 to your computer and use it in GitHub Desktop.
Save src256/f527da4ca4e0fcd8c24256f5ab864403 to your computer and use it in GitHub Desktop.
#!/bin/sh
hdiutil create -o /tmp/monterey -size 16384m -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 eject -force /Volumes/Install\ macOS\ Monterey
hdiutil convert /tmp/monterey.dmg -format UDTO -o ~/Desktop/monterey.cdr
mv ~/Desktop/monterey.cdr ~/Desktop/monterey.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment