Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorDylan M. Taylor <dylan@dylanmtaylor.com>2022-01-26 01:53:38 -0500
committerGitHub <noreply@github.com>2022-01-26 07:53:38 +0100
commit90e320dd110ee99537e9c55b158fed6edaa53b78 (patch)
tree01b90b28489926ead1dbc0bb2c38f094e7cf7f68 /examples/guided.py
parente629729d555987778262ff2db7e5a78726b2ea0c (diff)
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
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 723fa629..9092d8f6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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)