systemctl spits out some colors, so logic had to be changed.

This commit is contained in:
Anton Hvornum 2020-09-01 14:57:21 +02:00
parent a22a859b7f
commit 4413fdcf81
1 changed files with 1 additions and 3 deletions

View File

@ -9,10 +9,8 @@ def perform_installation(device, boot_partition, language, mirrors):
with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation: with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation:
if len(mirrors): if len(mirrors):
archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.') archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.')
while (status := archinstall.service_state('reflector')) != 'dead': while 'dead' not in (status := archinstall.service_state('reflector')):
print([status], status != 'dead')
time.sleep(0.25) time.sleep(0.25)
print('Completed.')
archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium
if installation.minimal_installation(): if installation.minimal_installation():