299
sfdisk_cmd = ',9,%s,*\n,,,-' % partition_type
296
301
# Create a one cylinder partition for fixed-offset bootloader data at
297
302
# the beginning of the image (size is one cylinder, so 8224768 bytes
298
303
# with the first sector for MBR).
299
run_sfdisk_commands(',1,0xDA', heads, sectors, cylinders, media.path)
301
306
# Create a VFAT or FAT16 partition of 9 cylinders (74027520 bytes, ~70
302
307
# MiB), followed by a Linux-type partition containing the rest of the free
304
sfdisk_cmd = ',9,%s,*\n,,,-' % partition_type
305
309
run_sfdisk_commands(sfdisk_cmd, heads, sectors, cylinders, media.path)
307
311
# Sync and sleep to wait for the partition to settle.