Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-22 09:33:00 +0000
committerGitHub <noreply@github.com>2021-11-22 09:33:00 +0000
commitc264fd466aca54bcc1a7210165ee143b5f0aa6f3 (patch)
tree1b690d10fe53924dd0cdfcfbb4cd3912c9fa319b /archinstall/lib/user_interaction.py
parent66e23af42290cf998b966523d4520a2110b0806b (diff)
Fix #746 - Can't create a filesystem on a new partition during the manual partitioning (#751)
* Changed default value of info in largest_free_space() * Fixing bad assumption that a disk always contain a minimum of two partitions.
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index c8b3fd91..05cba3ca 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -643,10 +643,10 @@ def manage_new_and_existing_partitions(block_device :BlockDevice) -> dict:
fstype = input("Enter a desired filesystem type for the partition: ").strip()
- start = input(f"Enter the start sector (percentage or block number, default: {block_device.largest_free_space[0]}): ").strip()
+ start = input(f"Enter the start sector (percentage or block number, default: {block_device.first_free_sector}): ").strip()
if not start.strip():
- start = block_device.largest_free_space[0]
- end_suggested = block_device.largest_free_space[1]
+ start = block_device.first_free_sector
+ end_suggested = block_device.first_end_sector
else:
end_suggested = '100%'
end = input(f"Enter the end sector of the partition (percentage or block number, ex: {end_suggested}): ").strip()