Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Forked from satmandu/mavericks make iso v1
Last active April 19, 2023 01:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muffinresearch/7516767 to your computer and use it in GitHub Desktop.
Save muffinresearch/7516767 to your computer and use it in GitHub Desktop.
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