Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-05-10 10:14:33 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-05-10 10:14:33 +0200
commit3e601ff9ab32947cc5a12b6059cde360b9191477 (patch)
tree920f337583e0b593835704579dcd954048a25b51 /examples/guided.py
parentd6f63375c65917fda3458d7efb1ed787b9f0d1ed (diff)
Added a soft-wrapper around parted logic. This logic will guide users through setting up partitions, if they chose to wipe a drive. We'll avoid doing to much auto-magic, and this is just a start.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 8e267df9..d65df218 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -44,6 +44,12 @@ def ask_user_questions():
archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]}
+ # Ask which boot-loader to use (will only ask if we're in BIOS (non-efi) mode)
+ # We do this before the disk selection process because there are some soft dependencies
+ # in retards to which boot loader/mode we're in.
+ archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader()
+
+
# Ask which harddrives/block-devices we will install to
# and convert them into archinstall.BlockDevice() objects.
if archinstall.arguments.get('harddrives', None):
@@ -65,10 +71,6 @@ def ask_user_questions():
archinstall.arguments['!encryption-password'] = passwd
- # Ask which boot-loader to use (will only ask if we're in BIOS (non-efi) mode)
- archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader()
-
-
# Get the hostname for the machine
if not archinstall.arguments.get('hostname', None):
archinstall.arguments['hostname'] = input('Desired hostname for the installation: ').strip(' ')