Skip to content

Instantly share code, notes, and snippets.

@cameronrye
Last active June 23, 2020 06:52
Show Gist options
  • Save cameronrye/4b9ce1723e66b20a36522c3ee4880084 to your computer and use it in GitHub Desktop.
Save cameronrye/4b9ce1723e66b20a36522c3ee4880084 to your computer and use it in GitHub Desktop.
Create macOS Big Sur Beta ISO Image
#!/usr/bin/env bash
# Create Disk Image
hdiutil create -o /tmp/BigSur.cdr -size 12000m -layout SPUD -fs HFS+J
# Mount it
hdiutil attach /tmp/BigSur.cdr.dmg -noverify -mountpoint /Volumes/install_build
# Create macOS Big Sur Installer
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
# Unmount Big Sur Disk
hdiutil detach /Volumes/Install\ macOS\ Beta
# Convert file to a iso image
hdiutil convert /tmp/BigSur.cdr.dmg -format UDTO -o /tmp/BigSur.iso
# Rename and Move to Desktop
mv /tmp/BigSur.iso.cdr ~/BigSur.iso
# Cleanup
rm /tmp/BigSur.cdr.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment