Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/interactive_installation.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/interactive_installation.py b/examples/interactive_installation.py
index f8cc75fc..69e509ba 100644
--- a/examples/interactive_installation.py
+++ b/examples/interactive_installation.py
@@ -5,7 +5,6 @@ import archinstall
from archinstall import Installer
from archinstall import profile
from archinstall import SysInfo
-from archinstall import mirrors
from archinstall import disk
from archinstall import menu
from archinstall import models
@@ -109,12 +108,8 @@ def perform_installation(mountpoint: Path):
# 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,
@@ -124,7 +119,7 @@ def perform_installation(mountpoint: Path):
)
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')