Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,10 @@ def append_mod(self, mod: str) -> None:
if mod not in self._modules:
self._modules.append(mod)

def _verify_service_stop(self, offline: bool, skip_ntp: bool, skip_wkd: bool) -> None:
def _verify_service_stop(self, skip_ntp: bool, skip_wkd: bool) -> None:
"""
Certain services might be running that affects the system during installation.
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.
We need to wait for them, to make sure ISO has no boot defects before install.
"""

if not skip_ntp:
Expand All @@ -203,17 +202,6 @@ def _verify_service_stop(self, offline: bool, skip_ntp: bool, skip_wkd: bool) ->
else:
info(tr('Skipping waiting for automatic time sync (this can cause issues if time is out of sync during installation)'))

if not offline:
info('Waiting for automatic mirror selection (reflector) to complete.')
for _ in range(60):
if self._service_state('reflector') in ('dead', 'failed', 'exited'):
break
time.sleep(1)
else:
warn('Reflector did not complete within 60 seconds, continuing anyway...')
else:
info('Skipped reflector...')

# info('Waiting for pacman-init.service to complete.')
# while self._service_state('pacman-init') not in ('dead', 'failed', 'exited'):
# time.sleep(1)
Expand Down Expand Up @@ -256,7 +244,7 @@ def sanity_check(
skip_wkd: bool = False,
) -> None:
# self._verify_boot_part()
self._verify_service_stop(offline, skip_ntp, skip_wkd)
self._verify_service_stop(skip_ntp, skip_wkd)

def mount_ordered_layout(self) -> None:
debug('Mounting ordered layout')
Expand Down