Debugging

This commit is contained in:
Anton Hvornum 2020-09-01 14:55:49 +02:00
parent 4dcafa7ec8
commit a22a859b7f
1 changed files with 3 additions and 2 deletions

View File

@ -9,9 +9,10 @@ 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 archinstall.service_state('reflector') != 'dead':
print(archinstall.service_state('reflector'))
while (status := archinstall.service_state('reflector')) != 'dead':
print([status], status != 'dead')
time.sleep(0.25)
print('Completed.')
archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium
if installation.minimal_installation():