Hdiutil convert '$IMGSPARSE' -format UDTO -o '$IMGDVD' Rm -f '$MPIMG'/System/Installation/PackagesĬp -rp '$MPAPP'/Packages '$MPIMG'/System/Installation/Įcho +++ Resize the partition in the sparse bundle to remove any free spaceĮcho +++ Convert the sparse bundle to ISO/CD master Hdiutil attach '$IMGSPARSE' -noverify -nobrowse -readwrite -mountpoint '$MPIMG'Įcho +++ Remove Package link and replace with actual files Hdiutil convert '$MPAPP'/BaseSystem.dmg -format UDSP -o '$IMGSPARSE'Įcho +++ Increase the sparse bundle capacity to accommodate the packagesĮcho +++ Mount the sparse bundle for package addition Hdiutil attach '$ESD' -noverify -nobrowse -readonly -mountpoint '$MPAPP'Įcho +++ Convert the boot image to a sparse bundle
Įcho +++ Trying to unmount anything from previous run If then hdiutil detach '$MPIMG' fiĮcho +++ Command returned with error, aborting. It's an enhanced version of the script found atĮcho usage: ''$0' /path/to/esd /path/to/tmpdir'
Starting with OS X Mavericks, you need to do a more complicated procesdure. In earlier times, all you needed to do was to convert that InstallESD.dmg into an ISO and you could install OS X in VMWare from scratch. For some reason, Apple decided that the InstallESD.dmg that comes with the Mavericks Install as downloaded from the App Store shouldn't be a bootable DVD image anymore.