Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-08 14:42:43 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-08 14:42:43 +0100
commit8da8608e220a62c993f7bdf49c2c3d7c9b4a43aa (patch)
treee34a71dea026242c004a27ca14fcdc94c357a6b4 /archinstall
parentbbf9face05fe573d760eb8ca662fdf5d34ed6902 (diff)
Added a small menu instead of a one-liner to select what to do with the disk if it has partitions.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 6a55df9c..e20e98b1 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -87,6 +87,14 @@ def ask_to_configure_network():
return None
+def ask_for_disk_layout():
+ options = {
+ 'keep-existing' : 'Keep existing partition layout and select which ones to use where.',
+ 'format-all' : 'Format entire drive and setup a basic partition scheme.'
+ }
+
+ return generic_select(options.values(), "Found partitions on the selected drive, (select by number) what do you want to do: ")
+
def generic_select(options, input_text="Select one of the above by index or absolute value: ", sort=True):
"""
A generic select function that does not output anything