30
30
# sometimes sgdisk exits non-zero; this is OK, dd will clean up
31
31
call(['sgdisk', '--zap-all', '--mbrtogpt',
32
32
'--clear', block_device])
34
35
gpt_end = int(dev_end.split()[0]) - 100
35
36
check_call(['dd', 'if=/dev/zero', 'of=%s' % (block_device),