Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-09-01 14:52:59 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-09-01 14:52:59 +0200
commit4dcafa7ec87f021af109209d27a51ac4c9efb0db (patch)
treede2a1df45a481df6b5c6b4b58cff031b48b8f391 /examples
parent8494014c3bc437984f6573bfc0281bc5a7351cda (diff)
Tweaking the mirror selection vs automatic mirror processes.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 513fd56a..c6e6297c 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -7,9 +7,11 @@ def perform_installation(device, boot_partition, language, mirrors):
formatted and setup prior to entering this function.
"""
with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation:
- while archinstall.service_state('reflector') != 'dead':
- print(archinstall.service_state('reflector'))
- time.sleep(0.25)
+ if len(mirrors):
+ archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.')
+ while archinstall.service_state('reflector') != 'dead':
+ print(archinstall.service_state('reflector'))
+ time.sleep(0.25)
archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium
if installation.minimal_installation():