Remove Arch folder after mounting UFD

This commit is contained in:
2Shirt 2019-05-24 16:10:51 -06:00
parent ff12a7e612
commit f395f7aec1
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -55,15 +55,7 @@ if __name__ == '__main__':
# Prep UFD
print_info('Prep UFD')
if args['--update']:
# Remove arch folder
try_and_print(
indent=2,
message='Removing Linux...',
function=remove_arch,
)
else:
# Format and partition
if not args['--update']:
prep_device(ufd_dev, UFD_LABEL, use_mbr=args['--use-mbr'])
# Mount UFD
@ -76,6 +68,14 @@ if __name__ == '__main__':
read_write=True,
)
# Remove Arch folder
if args['--update']:
try_and_print(
indent=2,
message='Removing Linux...',
function=remove_arch,
)
# Copy sources
print_standard(' ')
print_info('Copy Sources')