index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Hugo Ankarloo <hugo@ilait.se> | 2021-09-20 20:17:39 +0200 |
---|---|---|
committer | Hugo Ankarloo <hugo@ilait.se> | 2021-09-20 20:17:39 +0200 |
commit | 915ae88947a008a21006d2572e498ed0c134350c (patch) | |
tree | 4c5f009ebd9f30793cba26b44d7fab04fca219bd /archinstall/lib/user_interaction.py | |
parent | ffbfafb35428168366de3ced572f648c6d49dc03 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 5 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 66dd3350..ca8fb6f6 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -730,7 +730,10 @@ def manage_new_and_existing_partitions(block_device :BlockDevice) -> dict: block_device_struct["partitions"][block_device_struct["partitions"].index(partition)]['boot'] = not block_device_struct["partitions"][block_device_struct["partitions"].index(partition)].get('boot', False) elif task == "Set desired filesystem for a partition": - if (partition := generic_select(block_device_struct["partitions"], 'Select which partition to set a filesystem on: ', options_output=False)): + if not block_device_struct["partitions"]: + log("No partitions found. Create some partitions first", level=logging.WARNING, fg='yellow') + continue + elif (partition := generic_select(block_device_struct["partitions"], 'Select which partition to set a filesystem on: ', options_output=False)): if not block_device_struct["partitions"][block_device_struct["partitions"].index(partition)].get('filesystem', None): block_device_struct["partitions"][block_device_struct["partitions"].index(partition)]['filesystem'] = {} |