Missing .format() on 'use entire disk' step
This commit is contained in:
parent
20e759d4cc
commit
e965eaf546
|
|
@ -810,14 +810,15 @@ class Filesystem:
|
||||||
if not partition.get('filesystem'):
|
if not partition.get('filesystem'):
|
||||||
partition['filesystem'] = {}
|
partition['filesystem'] = {}
|
||||||
|
|
||||||
while True:
|
if not partition['filesystem'].get('format', False):
|
||||||
partition['filesystem']['format'] = input(f"Enter a valid fs-type for newly encrypted partition {partition['filesystem']['format']}: ").strip()
|
while True:
|
||||||
if not partition['filesystem']['format'] or valid_fs_type(partition['filesystem']['format']) is False:
|
partition['filesystem']['format'] = input(f"Enter a valid fs-type for newly encrypted partition {partition['filesystem']['format']}: ").strip()
|
||||||
pint("You need to enter a valid fs-type in order to continue. See `man parted` for valid fs-type's.")
|
if not partition['filesystem']['format'] or valid_fs_type(partition['filesystem']['format']) is False:
|
||||||
continue
|
pint("You need to enter a valid fs-type in order to continue. See `man parted` for valid fs-type's.")
|
||||||
break
|
continue
|
||||||
|
break
|
||||||
|
|
||||||
unlocked_device.format(partition['filesystem']['format'])
|
unlocked_device.format(partition['filesystem']['format'])
|
||||||
elif partition.get('format', False):
|
elif partition.get('format', False):
|
||||||
partition['device_instance'].format(partition['filesystem']['format'])
|
partition['device_instance'].format(partition['filesystem']['format'])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue