Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Girtler <girtler.daniel@gmail.com>2024-03-08 00:43:16 +1100
committerGitHub <noreply@github.com>2024-03-07 14:43:16 +0100
commitf927fb6e6a17123c05c6595bbdb45ed771596ab9 (patch)
tree9f858daed9ff66e1790b87bb3449a12ffa57d560 /examples
parent21dd295259e26580faa259dfe32d8e9554ae8933 (diff)
Fix 2307 - Custom mirrors (#2350)
* Fix 2307 - Custom mirrors * Update
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')