Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 17:11:45 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 17:11:45 +0100
commitac8393645c49d0c11170566d7a1650b2da906567 (patch)
treea0c3e7abdf5f469703b203886dcc77ae562e3866
parentf679b49070a9a5339ed36b066f038bf3812414f1 (diff)
Don't show drives unless we have some
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 26de5215..040b29b5 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -712,7 +712,7 @@ def setup_args_defaults(args, interactive=True):
if not 'ignore-rerun' in args: args['ignore-rerun'] = False
if not 'localtime' in args: args['localtime'] = 'Europe/Stockholm' if args['country'] == 'SE' else 'GMT+0' # TODO: Arbitrary for now
if not 'drive' in args:
- if interactive:
+ if interactive and len(harddrives):
drives = sorted(list(harddrives.keys()))
if len(drives) > 1 and 'force' not in args and ('default' in args and 'first-drive' not in args):
for index, drive in enumerate(drives):