Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vrudikov/b0ecb0189bfd3945bd7b709963f51d3b to your computer and use it in GitHub Desktop.
Save vrudikov/b0ecb0189bfd3945bd7b709963f51d3b to your computer and use it in GitHub Desktop.
Mac OS X Developer Preview 1 target partition creator for qemu-ppc
#!/bin/sh
TARGET_IMAGE=1G_BLANK_MACOSX_DP1_DISK_IMAGE.img
DISKSIZE_IN_BLOCKS=2097152
PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS - 512 - 16384 - 64`
pdisk $TARGET_IMAGE -initialize
pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384
pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512
pdisk $TARGET_IMAGE -createPartition "0x00 0x00 0x00" Apple_Rhapsody_Inst 16960 $PRIMARY_PARTITIONSIZE_IN_BLOCKS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment