Hey Guys,
Had to roll out several labs of dual boot fusions and wanted some way to automate the partitioning, Some people dont like my script i wrote as it (Deletes the og Apple Fusion) however it works for me untill i find a better way, Thought i might share (have shared on DS forum as well) I have hardcoded the Part Sizes as we still use DS to deploy and for some reason it wouldn't pass a variable for me there possibly a bug in my netboot set. We only order the 1tb drives anyway. Welcome to improvements
#!/bin/sh
VolumeGroup=`diskutil coreStorage list | grep Logical Volume Group | sed -e "s/^.* //"`
echo $VolumeGroup
diskutil coreStorage delete $VolumeGroup
sleep 2
diskutil coreStorage create Fusion disk0 disk1
sleep 2
VolumeGroupNew=`diskutil coreStorage list | grep Logical Volume Group | sed -e "s/^.* //"`
echo $VolumeGroupNew
sleep 2
diskutil coreStorage createVolume $VolumeGroupNew jhfs+ OSX 1100G
sleep 4
VolumeShrink=`diskutil cs list | grep Logical Volume | tail -1 |sed -e "s/^.* //" `
diskutil cs resizeStack $VolumeShrink 600g ms-dos WINDOWS 500G
exit 0