Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswayg/e0dabe3a260891e575c8fc2f20506a06 to your computer and use it in GitHub Desktop.
Save chriswayg/e0dabe3a260891e575c8fc2f20506a06 to your computer and use it in GitHub Desktop.
Make yosemite iso

Create Yosemite.iso from OS X App Store installer

If you prefer to make a bootable dvd, you can do it this way:

After downloading the full Yosemite installer app from the Mac App Store, run these 14 commands in Terminal to create a Yosemite.iso file and then burn it to a dual layer DVD with Disk Utility. You may then boot up from it by holding the option key down and then install Yosemite.

  • This worked on Mojave in 2020-06
  • Location of archived installer: /Volumes/MEDIA_DB4/macOS Installers 2019/Install OS X Yosemite.app
hdiutil attach '/Volumes/MEDIA_DB4/macOS Installers 2019/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg' -noverify -nobrowse -mountpoint /Volumes/install_app

hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite
 
hdiutil resize -size 8g /tmp/Yosemite.sparseimage
 
hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
 
rm /Volumes/install_build/System/Installation/Packages
 
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
 
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build
 
cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build
 
hdiutil detach /Volumes/install_app
 
hdiutil detach /Volumes/install_build
 
hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage
 
hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite
 
rm /tmp/Yosemite.sparseimage
 
mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment