237
237
# Create a new partition table and a FAT partition.
238
238
# Is this correct call to create partition table ?!
239
block.call_format_sync('dos', GLib.Variant('a{sv}', {'erase': GLib.Variant('s', '')}), None)
239
block.call_format_sync('dos', GLib.Variant('a{sv}', {'erase': GLib.Variant('s', 'zero')}), None)
240
240
size = block.get_cached_property('Size').get_uint64()
241
241
table = dev.get_partition_table()
242
242
partition = table.call_create_partition_sync(0, size, '0x0c', '', no_options, None)