-
-
Save lamlion/c4a72b3b971e3eef6e2262e5b320c279 to your computer and use it in GitHub Desktop.
Create Catalina ISO file for VM or Bootable USB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#=========================================================================== | |
# Works only with the official image available in the Mac App Store. | |
# Make sure you download the official installer before running this script. | |
#=========================================================================== | |
hdiutil create -o /tmp/Catalina.cdr -size 10000m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Catalina" | |
hdiutil convert /tmp/Catalina.cdr.dmg -format UDTO -o /tmp/Catalina.iso | |
mv /tmp/Catalina.iso.cdr ~/Desktop/Catalina.iso | |
rm /tmp/Catalina.cdr.dmg | |
Put ISO on USB stick: | |
sudo dd if=/path/image.iso of=/dev/r(IDENTIFIER) bs=4m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment