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-27 23:22:01 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-27 23:22:01 +0000
commitc5d9be669dc6241f94c458bfd8b565b293549695 (patch)
treea974f244f61aa136b8934455816a949eead6c693
parentbbcfd7a73da772dfeed3dd0d7a1265f4d6e5ac1d (diff)
Update: mirrors are now re-ordered by default if a gateway and country is found
-rw-r--r--archinstall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 50e59d04..8def7adb 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -772,6 +772,7 @@ def guess_country(ip, *positionals, **kwargs):
def setup_args_defaults(args, interactive=True):
if not 'size' in args: args['size'] = '100%'
+ if not 'mirrors' in args: args['mirrors'] = True
if not 'start' in args: args['start'] = '513MiB'
if not 'pwfile' in args: args['pwfile'] = '/tmp/diskpw'
if not 'hostname' in args: args['hostname'] = 'Archinstall'
@@ -1178,7 +1179,7 @@ if __name__ == '__main__':
format_disk('drive', start='start', end='size')
refresh_partition_list('drive')
- print(f'Partitions: (Boot: {list(args["partitions"].keys())[0]})')
+ print(f'[N] Partitions: {len(args["partitions"])} (Boot: {list(args["partitions"].keys())[0]})')
if len(args['partitions']) <= 0:
print(f'[E] No partitions were created on {args["drive"]}', o)