Allow mirror reachability check to be skipped (#910)

* Allow network check to be skipped

* Technically it is a mirror check - not a check for general connectivity
This commit is contained in:
Dylan M. Taylor 2022-01-26 01:53:38 -05:00 committed by GitHub
parent e629729d55
commit 90e320dd11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ def perform_installation(mountpoint):
archinstall.log(f"Disk states after installing: {archinstall.disk_layouts()}", level=logging.DEBUG)
if not archinstall.check_mirror_reachable():
if not (archinstall.check_mirror_reachable() or archinstall.arguments.get('skip-mirror-check', False)):
log_file = os.path.join(archinstall.storage.get('LOG_PATH', None), archinstall.storage.get('LOG_FILE', None))
archinstall.log(f"Arch Linux mirrors are not reachable. Please check your internet connection and the log file '{log_file}'.", level=logging.INFO, fg="red")
exit(1)