Update: mirrors are now re-ordered by default if a gateway and country is found

This commit is contained in:
Anton Hvornum 2019-11-27 23:22:01 +00:00
parent bbcfd7a73d
commit c5d9be669d
1 changed files with 2 additions and 1 deletions

View File

@ -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)