From 3f5170f4227a05b17b01645386e3208137b259dd Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 27 Feb 2023 11:56:44 +0100 Subject: Added 'exited' as a viable status code for services --- examples/guided.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index e0753834..0bf30c46 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -173,15 +173,15 @@ def perform_installation(mountpoint): # 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. 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) 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) 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) # Set mirrors used by pacstrap (outside of installation) -- cgit v1.2.3-70-g09d2