Added a rerun feature. So we don't have to wait for pacstrap every debug run :P
This commit is contained in:
parent
aa2871f3f6
commit
6dacf539c9
|
|
@ -554,11 +554,11 @@ if __name__ == '__main__':
|
||||||
print('[E] No paritions were created on {drive}'.format(**args), o)
|
print('[E] No paritions were created on {drive}'.format(**args), o)
|
||||||
exit(1)
|
exit(1)
|
||||||
for index, part_name in enumerate(sorted(args['paritions'].keys())):
|
for index, part_name in enumerate(sorted(args['paritions'].keys())):
|
||||||
args['partition_{}'.format(index+1)] = part_name
|
args['partition_{}'.format(index+1)] = part_name
|
||||||
print(f'Partition info: {part_name}')
|
print(f'Partition info: {part_name}')
|
||||||
print(json.dumps(args['paritions'][part_name], indent=4))
|
print(json.dumps(args['paritions'][part_name], indent=4))
|
||||||
|
|
||||||
if not args['rerun']:
|
if not args['rerun']:
|
||||||
o = b''.join(sys_command('/usr/bin/mkfs.vfat -F32 {drive}{partition_1}'.format(**args)).exec())
|
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:
|
if (b'mkfs.fat' not in o and b'mkfs.vfat' not in o) or b'command not found' in o:
|
||||||
print('[E] Could not setup {drive}{partition_1}'.format(**args), o)
|
print('[E] Could not setup {drive}{partition_1}'.format(**args), o)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue