Reordered functions

This commit is contained in:
2Shirt 2019-04-15 23:04:37 -07:00
parent fc9de61269
commit 95f4877862
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -60,7 +60,6 @@ def confirm_selections(args):
def copy_source(source, items, overwrite=False):
"""Mount source and copy items to /mnt/UFD."""
os.makedirs('/mnt/Source', exist_ok=True)
mount(source, '/mnt/Source')
for i_source, i_dest in items:
i_source = '/mnt/Source{}'.format(i_source)
@ -143,12 +142,6 @@ def mount(mount_source, mount_point):
run_program(cmd)
def unmount(mount_point):
"""Unmount mount_point."""
cmd = ['umount', mount_point]
run_program(cmd)
def prep_device(dev_path, label, use_mbr=False):
"""Format device in preparation for applying the WizardKit components
@ -312,6 +305,12 @@ def show_selections(args, sources, ufd_dev, ufd_sources):
print_standard(' ')
def unmount(mount_point):
"""Unmount mount_point."""
cmd = ['umount', mount_point]
run_program(cmd)
def verify_sources(args, ufd_sources):
"""Check all sources and abort if necessary, returns dict."""
sources = OrderedDict()