Forked from steventroughtonsmith/dp1_target_image_creator.sh
Created
January 6, 2017 14:09
-
-
Save vrudikov/b0ecb0189bfd3945bd7b709963f51d3b to your computer and use it in GitHub Desktop.
Mac OS X Developer Preview 1 target partition creator for qemu-ppc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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