Added 'exited' as a viable status code for services

This commit is contained in:
Anton Hvornum 2023-02-27 11:56:44 +01:00 committed by GitHub
parent 50d20f0b80
commit 3f5170f422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -173,15 +173,15 @@ 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('Waiting for automatic mirror selection (reflector) to complete.', level=logging.INFO) installation.log('Waiting for automatic mirror selection (reflector) to complete.', level=logging.INFO)
while archinstall.service_state('reflector') not in ('dead', 'failed'): while archinstall.service_state('reflector') not in ('dead', 'failed', 'exited'):
time.sleep(1) time.sleep(1)
installation.log('Waiting pacman-init.service to complete.', level=logging.INFO) installation.log('Waiting pacman-init.service to complete.', level=logging.INFO)
while archinstall.service_state('pacman-init') not in ('dead', 'failed'): while archinstall.service_state('pacman-init') not in ('dead', 'failed', 'exited'):
time.sleep(1) time.sleep(1)
installation.log('Waiting Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete.', level=logging.INFO) installation.log('Waiting Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete.', level=logging.INFO)
while archinstall.service_state('archlinux-keyring-wkd-sync') not in ('dead', 'failed'): while archinstall.service_state('archlinux-keyring-wkd-sync') not in ('dead', 'failed', 'exited'):
time.sleep(1) time.sleep(1)
# Set mirrors used by pacstrap (outside of installation) # Set mirrors used by pacstrap (outside of installation)