Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Last active November 12, 2024 11:41
Show Gist options
  • Select an option

  • Save memoryleak/30f275beebe28595d736eb2b380a0fa9 to your computer and use it in GitHub Desktop.

Select an option

Save memoryleak/30f275beebe28595d736eb2b380a0fa9 to your computer and use it in GitHub Desktop.
Create a Mac OS Monterey ISO file from the official installation DMG file
#!/usr/bin/env bash
sudo hdiutil create -o /tmp/Monterey -size 16g -volname Monterey -layout SPUD -fs HFS+J
sudo 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 ~/Downloads/Monterey
mv -v ~/Downloads/Monterey.cdr ~/Downloads/Monterey.iso
sudo rm -fv /tmp/Monterey.dmg
board-id = "Mac-551B86E5744E2388"
hw.model.reflectHost = "FALSE"
hw.model = "MacBookPro14,3"
serialNumber.reflectHost = "FALSE"
serialNumber = "C02XXXXXX153"
smbios.reflectHost = "FALSE"
efi.nvram.var.ROM.reflectHost = "FALSE"
efi.nvram.var.MLB.reflectHost = "FALSE"
efi.nvram.var.ROM = "3c0754a2f9be"
@apjanke
Copy link
Copy Markdown

apjanke commented Jan 14, 2024

Me too! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment