Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-13 10:01:54 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-13 10:01:54 +0200
commit67b05d8fb13c5a417d063ead1f8add6c0f15c226 (patch)
tree03ea82e6a2e6938667ae83ad8502f9acfd5de247 /examples
parent9f21ec713dc1776e943ad060f3b5febc11f16753 (diff)
Added option to not touch mirror-list. Example if archlinux.org times out, use the existing mirror-list without trying to overwrite it.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 7353b7a7..7223ebbe 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -281,10 +281,12 @@ def perform_installation(mountpoint):
while 'dead' not in (status := archinstall.service_state('reflector')):
time.sleep(1)
- archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
+ if archinstall.arguments.get('mirror-region', None):
+ archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
if installation.minimal_installation():
installation.set_hostname(archinstall.arguments['hostname'])
- installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
+ if archinstall.arguments.get('mirror-region', None):
+ installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
installation.add_bootloader()