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>2020-09-01 15:38:23 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-09-01 15:38:23 +0200
commit911d876cb64b2a543418110045df0ea41b5a6a16 (patch)
treeca5e3f0dd4cb7b8ad975973eb6c9e23b23de21c0
parent4413fdcf816c613f58c337b8551929c596d199b6 (diff)
Made waiting for reflector mandatory. Which should fix issue #47.
-rw-r--r--examples/guided.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 125ebf51..7d7d6e8d 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -7,10 +7,13 @@ 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:
- if len(mirrors):
- archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.')
- while 'dead' not in (status := archinstall.service_state('reflector')):
- time.sleep(0.25)
+ ## if len(mirrors):
+ # Certain services might be running that affects the system during installation.
+ # Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist
+ # We need to wait for it before we continue since we opted in to use a custom mirror/region.
+ archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.')
+ while 'dead' not in (status := archinstall.service_state('reflector')):
+ time.sleep(1)
archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium
if installation.minimal_installation():