Modified partition debug output to not fool which order they come in
This commit is contained in:
parent
f1e1af4557
commit
27c630dc82
|
|
@ -535,13 +535,14 @@ if __name__ == '__main__':
|
|||
|
||||
args['paritions'] = grab_partitions(args['drive'])
|
||||
print(f'Partitions: (Boot: {list(args["paritions"].keys())[0]})')
|
||||
print(json.dumps(args['paritions'], indent=4))
|
||||
|
||||
if len(args['paritions']) <= 0:
|
||||
print('[E] No paritions were created on {drive}'.format(**args), o)
|
||||
exit(1)
|
||||
for index, part_name in enumerate(sorted(args['paritions'].keys())):
|
||||
args['partition_{}'.format(index+1)] = part_name
|
||||
print(f'Partition info: {part_name}')
|
||||
print(json.dumps(args['paritions'][part_name], indent=4))
|
||||
|
||||
o = b''.join(sys_command('/usr/bin/mkfs.vfat -F32 {drive}{partition_1}'.format(**args)).exec())
|
||||
if (b'mkfs.fat' not in o and b'mkfs.vfat' not in o) or b'command not found' in o:
|
||||
|
|
|
|||
Loading…
Reference in New Issue