Friday, July 29, 2011

HOWTO install OS X from a system image

To install OS X from a system image, first partition the disk using diskutil:
diskutil partitionDisk disk0 2 GPT JHFS+ os 90% JHFS+ installer 10%
Download the install image onto the os partition:
curl -o /Volumes/os/osximage.dmg -L http://mydomain.com/osximage.dmg
and restore it to the installer partition:
asr restore --erase --noprompt --noverify --target /dev/disk0s3 --source /Volumes/os/osximage.dmg
Reboot!

No comments: