Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-09-01 14:57:21 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-09-01 14:57:21 +0200
commit4413fdcf816c613f58c337b8551929c596d199b6 (patch)
treef039bb15335d449b8d0d83adeefdebf8a6145efc /examples
parenta22a859b7f929285c10fce05af3667d0c64e8d67 (diff)
systemctl spits out some colors, so logic had to be changed.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index a3331b73..125ebf51 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -9,10 +9,8 @@ def perform_installation(device, boot_partition, language, mirrors):
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 (status := archinstall.service_state('reflector')) != 'dead':
- print([status], status != 'dead')
+ while 'dead' not in (status := archinstall.service_state('reflector')):
time.sleep(0.25)
- print('Completed.')
archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium
if installation.minimal_installation():