systemctl spits out some colors, so logic had to be changed.
This commit is contained in:
parent
a22a859b7f
commit
4413fdcf81
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue