Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/scripts/guided.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/scripts/guided.py')
-rw-r--r--archinstall/scripts/guided.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py
index 1e19c9a3..1aecc1cd 100644
--- a/archinstall/scripts/guided.py
+++ b/archinstall/scripts/guided.py
@@ -11,7 +11,7 @@ from archinstall.default_profiles.applications.pipewire import PipewireProfile
from archinstall.lib.configuration import ConfigurationOutput
from archinstall.lib.installer import Installer
from archinstall.lib.menu import Menu
-from archinstall.lib.mirrors import use_mirrors
+from archinstall.lib.mirrors import use_mirrors, add_custom_mirrors
from archinstall.lib.models.bootloader import Bootloader
from archinstall.lib.models.network_configuration import NetworkConfigurationHandler
from archinstall.lib.networking import check_mirror_reachable
@@ -45,7 +45,7 @@ def ask_user_questions():
global_menu.enable('keyboard-layout')
# Set which region to download packages from during the installation
- global_menu.enable('mirror-region')
+ global_menu.enable('mirror_config')
global_menu.enable('sys-language')
@@ -137,8 +137,11 @@ def perform_installation(mountpoint: Path):
installation.generate_key_files()
# Set mirrors used by pacstrap (outside of installation)
- if archinstall.arguments.get('mirror-region', None):
- use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
+ if mirror_config := archinstall.arguments.get('mirror_config', None):
+ if mirror_config.mirror_regions:
+ use_mirrors(mirror_config.mirror_regions)
+ if mirror_config.custom_mirrors:
+ add_custom_mirrors(mirror_config.custom_mirrors)
installation.minimal_installation(
testing=enable_testing,
@@ -147,9 +150,8 @@ def perform_installation(mountpoint: Path):
locales=[locale]
)
- if archinstall.arguments.get('mirror-region') is not None:
- if archinstall.arguments.get("mirrors", None) is not None:
- installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
+ if mirror_config := archinstall.arguments.get('mirror_config', None):
+ installation.set_mirrors(mirror_config) # Set the mirrors in the installation medium
if archinstall.arguments.get('swap'):
installation.setup_swap('zram')