Created
February 25, 2021 07:50
-
-
Save d4rk22/a5c7cf9484976234e6c2ac17f8dc8113 to your computer and use it in GitHub Desktop.
My contribution to bootableinstaller.com
This file contains hidden or 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
######################### | |
# bootableinstaller.com # | |
######################### | |
set -e | |
set -u | |
# Create an empty | |
hdiutil create -o /tmp/empty -size 12800m -volname "Big Sur" -layout SPUD -fs HFS+J | |
# Rename to .img since this isn't a compressed disk image | |
mv /tmp/empty.dmg /tmp/bigsur.img | |
# Mount the empty disk image | |
hdiutil attach /tmp/bigsur.img -noverify -nobrowse -mountpoint '/Volumes/Install macOS Big Sur/' | |
# Create the installer image | |
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --nointeraction --volume '/Volumes/Install macOS Big Sur/' | |
# Detach the installer | |
hdiutil detach '/Volumes/Install macOS Big Sur/' | |
# This is actually already in the correct format | |
mv /tmp/bigsur.img bigsur.iso | |
# Many thanks to https://support.apple.com/en-us/HT201372 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment