Fix Bug: config b0rked by Suggest partition layout

File: lib/user_interaction.py

When function manage_new_and_existing_partitions() is used, and
'Suggest partition layout' is selected, the partition info is not
correctly stored in the config.

Instead of: {"partitions": [{...}, {...}]}
You get: {"partitions": {"partitions": [{...}, {...}], "wipe":True}}
This commit is contained in:
Hugo Ankarloo 2021-09-20 19:58:56 +02:00
parent d2d80113b3
commit ffbfafb354
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ def manage_new_and_existing_partitions(block_device :BlockDevice) -> dict:
if input(f"{block_device} contains queued partitions, this will remove those, are you sure? y/N: ").strip().lower() in ('', 'n'):
continue
block_device_struct["partitions"] = suggest_single_disk_layout(block_device)[block_device]
block_device_struct.update( suggest_single_disk_layout(block_device)[block_device] )
elif task is None:
return block_device_struct
else: