Fixing reflector waiting state. It can be dead which means it's done, or failed it systemd failed to start/find it.

This commit is contained in:
Anton Hvornum 2021-04-13 12:47:17 +02:00
parent ea4394262f
commit 4d7c787cfd
1 changed files with 3 additions and 3 deletions

View File

@ -278,7 +278,7 @@ def perform_installation(mountpoint):
# Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist # 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. # We need to wait for it before we continue since we opted in to use a custom mirror/region.
installation.log(f'Waiting for automatic mirror selection (feflector) to complete.', level=archinstall.LOG_LEVELS.Info) installation.log(f'Waiting for automatic mirror selection (feflector) to complete.', level=archinstall.LOG_LEVELS.Info)
while 'dead' not in (status := archinstall.service_state('reflector')): while archinstall.service_state('reflector') not in ('dead', 'failed'):
time.sleep(1) time.sleep(1)
# Set mirrors used by pacstrap (outside of installation) # Set mirrors used by pacstrap (outside of installation)