Skip to content

Commit

Permalink
usb.py: Fix cli invocation, refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherDroog committed Mar 22, 2019
1 parent 26ebcd9 commit fada118
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions noma/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,22 @@ def usb_setup():
smallest = smallest_partition()

print('Starting USB installation')
print('Using %s as archive storage') % largest
print('Using %s as volatile storage') % medium
print('Using %s as important storage') % smallest
print('Using {} as archive storage'.format(largest))
print('Using {} as volatile storage'.format(medium))
print('Using {} as important storage'.format(smallest))

lncm_usb = "/usr/local/sbin/lncm-usb"

cli_invocation = ' '.join([lncm_usb,
largest,
medium,
smallest,
get_uuid(largest),
get_uuid(medium),
get_uuid(smallest),
str(largest_part_size())])
cli_invocation = [lncm_usb,
largest,
medium,
smallest,
get_uuid(largest),
get_uuid(medium),
get_uuid(smallest),
str(largest_part_size())]

call([cli_invocation])
call(cli_invocation)


if __name__ == "__main__":
Expand Down

0 comments on commit fada118

Please sign in to comment.