Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-13 12:47:17 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-13 12:47:17 +0200
commit4d7c787cfda56b300f4a0e47db668d2148d6593a (patch)
treedcb1d7c772a00e2f720e852e7de2101cdc6e1c9f
parentea4394262f1c88966efb9977ea0cf5e8d2da2b1f (diff)
Fixing reflector waiting state. It can be dead which means it's done, or failed it systemd failed to start/find it.
-rw-r--r--examples/guided.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 7d8877bd..c2dba3db 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -278,7 +278,7 @@ 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(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)
# Set mirrors used by pacstrap (outside of installation)
@@ -287,11 +287,11 @@ def perform_installation(mountpoint):
if installation.minimal_installation():
installation.set_hostname(archinstall.arguments['hostname'])
-
+
# Configure the selected mirrors in the installation
if archinstall.arguments.get('mirror-region', None):
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
-
+
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
installation.add_bootloader()