Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/scripts/swiss.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/scripts/swiss.py')
-rw-r--r--archinstall/scripts/swiss.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/archinstall/scripts/swiss.py b/archinstall/scripts/swiss.py
index 1db304a8..8a5488bc 100644
--- a/archinstall/scripts/swiss.py
+++ b/archinstall/scripts/swiss.py
@@ -4,7 +4,6 @@ from typing import TYPE_CHECKING, Any, Dict, Optional
import archinstall
from archinstall import SysInfo, info, debug
-from archinstall.lib import mirrors
from archinstall.lib import models
from archinstall.lib import disk
from archinstall.lib import locale
@@ -188,12 +187,8 @@ def perform_installation(mountpoint: Path, exec_mode: ExecutionMode):
# generate encryption key files for the mounted luks devices
installation.generate_key_files()
- # Set mirrors used by pacstrap (outside of installation)
if mirror_config := archinstall.arguments.get('mirror_config', None):
- if mirror_config.mirror_regions:
- mirrors.use_mirrors(mirror_config.mirror_regions)
- if mirror_config.custom_mirrors:
- mirrors.add_custom_mirrors(mirror_config.custom_mirrors)
+ installation.set_mirrors(mirror_config)
installation.minimal_installation(
testing=enable_testing,
@@ -203,7 +198,7 @@ def perform_installation(mountpoint: Path, exec_mode: ExecutionMode):
)
if mirror_config := archinstall.arguments.get('mirror_config', None):
- installation.set_mirrors(mirror_config) # Set the mirrors in the installation medium
+ installation.set_mirrors(mirror_config, on_target=True)
if archinstall.arguments.get('swap'):
installation.setup_swap('zram')