Created
March 25, 2016 09:47
-
-
Save bcfurtado/f059481945eb16889ed0 to your computer and use it in GitHub Desktop.
Create ISO of ElCapitan
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
#!/bin/bash | |
# http://anadoxin.org/blog/creating-a-bootable-el-capitan-iso-image.html | |
hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd | |
hdiutil create -o ElCapitan3.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach ElCapitan3.cdr.dmg -noverify -nobrowse -mountpoint | |
asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase | |
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
cp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/Installation | |
cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/ | |
cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/ | |
hdiutil detach /Volumes/esd | |
hdiutil detach /Volumes/OS\ X\ Base\ System | |
hdiutil convert ElCapitan3.cdr.dmg -format UDTO -o ElCapitan3.iso | |
mv ElCapitan3.iso.cdr ElCapitan3.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment