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@hvornum.se>2021-04-09 17:33:44 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 17:33:44 +0200
commitbd134c5db0f9fb93b51e00b3a2df992715d28d81 (patch)
tree7bbc1701d1969836fa184553578dbbe3f4b673d6 /examples/guided.py
parent0dafeacabd37f77f3ffc6e4a4bf769a7fe3ea2bb (diff)
Moved the 'use /mnt' logic to during disk selection.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 0d8030c7..2028c0c4 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -30,6 +30,8 @@ def ask_user_questions():
archinstall.arguments['harddrive'] = archinstall.BlockDevice(archinstall.arguments['harddrive'])
else:
archinstall.arguments['harddrive'] = archinstall.select_disk(archinstall.all_disks())
+ if archinstall.arguments['harddrive'] is None:
+ archinstall.arguments['target-mount'] = '/mnt'
# Perform a quick sanity check on the selected harddrive.
# 1. Check if it has partitions
@@ -53,9 +55,6 @@ def ask_user_questions():
if (option := archinstall.ask_for_disk_layout()) == 'abort':
archinstall.log(f"Safely aborting the installation. No changes to the disk or system has been made.")
exit(1)
- elif option == 'use-mnt':
- archinstall.arguments['harddrive'] = None
- archinstall.arguments['target-mount'] = '/mnt'
elif option == 'keep-existing':
archinstall.arguments['harddrive'].keep_partitions = True