Skip to content

Instantly share code, notes, and snippets.

@rold64
Forked from memoryleak/create-monterey-iso.sh
Created January 3, 2023 02:26
Show Gist options
  • Save rold64/1715140a6cf36ab4bc6e00a6d838a26e to your computer and use it in GitHub Desktop.
Save rold64/1715140a6cf36ab4bc6e00a6d838a26e 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment