-
-
Save muffinresearch/7516767 to your computer and use it in GitHub Desktop.
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
hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg | |
cd /tmp | |
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o /tmp/RWBase | |
hdiutil convert -format UDSP -o /tmp/sparseRWBase RWBase.dmg | |
rm /tmp/RWBase.dmg | |
hdiutil resize -size 6g /tmp/sparseRWBase.sparseimage | |
hdiutil attach -owners on /tmp/sparseRWBase.sparseimage -shadow | |
sudo rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
sudo ditto /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
hdiutil eject /Volumes/OS\ X\ Install\ ESD/ | |
hdiutil eject /Volumes/OS\ X\ Base\ System/ | |
sudo hdiutil makehybrid -iso -hfs /tmp/sparseRWBase.sparseimage -shadow /tmp/sparseRWBase.sparseimage.shadow -o ~/Desktop/OSX-10.9.iso | |
rm /tmp/sparseRWBase.sparseimage.shadow | |
rm /tmp/sparseRWBase.sparseimage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment