First, we need access to an apple recovery partition. This should be easy if you have the installation media or a mac that has not been loaded via the K2.
Easy check: boot the mac, open terminal and type diskutil list and look for a line that says “Apple_boot Recovery HD”
Step 1 get a copy of the recovery partition
MBP-314159-apple:~ wile_e_coyote$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.4 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS LaCie 2.0 TB disk1s2
Note the identifier for this partition is “disk0s3” we need that in the next step.
Netboot the mac to the K2
cd /opt/kace/petemp/ImageStore
dd if=/dev/IDENTIFIER of=/opt/kace/petemp/ImageStore/IMAGENAME
IDENTIFIER will be the identifier on the like with the apple boot recovery hd in the above example its disk0s3
IMAGENAME can be any descriptive (no spaces) name you wish. BUT the recovery partition is tied to the osx version
So it’s good practice to put the osx version in the name in my case for osx 10.8.2 I used “osx_10.8.2.rhd”
Putting it all together my command looked like this:
dd if=/dev/disk0s3 of=/opt/kace/petemp/ImageStore/osx_10.8.2_rhd
NOTE: the name you use here MUST match the IMAGENAME in the corresponding pre-installation task (see below)
The dd command may take several minutes to run as it must transfer the contents of the recovery partition, around 650MB, to the k2
Step 2 Import the pre-install task (Attachment located below)
Step 3 add this new task right after the tasks :
Create Single HFS+ Partition on disk0
Format System Drive as HFS+
Build OSX 10.8.2 Recovery Partition
Save and wait for the image to rebuild. Deploy your next Mac and it will have a recovery partition on it.
For a mac already deployed, make an image on the k2 and redeploy it.
Important Caveats :
This process is not supported by Kace and while testing, you use it at your own risk
This only works for Mac with a single drive (disk0) and only one partition
The osx image being deployed must have more than 1GB of free space on the drive to which it is deployed