Debugging

This commit is contained in:
Anton Hvornum 2019-11-18 22:02:45 +00:00
parent 3657cc5c6e
commit 1129dae13d
1 changed files with 1 additions and 0 deletions

View File

@ -803,6 +803,7 @@ def refresh_partition_list(drive, *positionals, **kwargs):
def mkfs_fat32(drive, partition, *positionals, **kwargs):
print(json.dumps(args, indent=4))
drive = args[drive]
print(partition, type(partition), args['partitions'], type(args['partitions']))
partition = args['partitions'][partition]
o = b''.join(sys_command(f'/usr/bin/mkfs.vfat -F32 {drive}{partition}'))
if (b'mkfs.fat' not in o and b'mkfs.vfat' not in o) or b'command not found' in o: