This script prepares a customized OS X installer disk image for use with VMware Fusion

This script prepares a customized OS X installer disk image for use
with VMware Fusion. It's adapted from the prepare_iso script created by
Tim Sutton:
https://github.com/timsutton/osx-vm-templates/tree/master/prepare_iso

Running the script:

Run the create_vmware_osx_install_dmg.sh script with two arguments: the
path to an "Install OS X [Mountain] Lion.app" or the InstallESD.dmg
contained within, and an output directory.

Example usage:

If you have a 10.8.4 Mountain Lion installer available, run this
command:

sudo create_vmware_osx_install_dmg/create_vmware_osx_install_dmg.sh
"/Applications/Install OS X Mountain Lion.app" /path/to/output_directory

This should produce a DMG file at output_directory that's named
OSX_InstallESD_10.8.4_12E55.dmg. An MD5 checksum is printed at the end
of the process.