From 323af39ed57191747604b64d1c6ed6a46719c84f Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 1 Sep 2020 14:04:47 +0200 Subject: Added archinstall.Installer().set_mirrors, which allows to modify the mirrors in the finished installed medium. --- examples/guided.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index 59260775..f8f3f831 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -1,6 +1,6 @@ import archinstall, getpass, time -def perform_installation(device, boot_partition, language): +def perform_installation(device, boot_partition, language, mirrors): """ Performs the installation steps on a block device. Only requirement is that the block devices are @@ -8,6 +8,7 @@ def perform_installation(device, boot_partition, language): """ with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation: if installation.minimal_installation(): + installation.set_mirrors(mirrors) installation.set_keyboard_language(language) installation.add_bootloader() -- cgit v1.2.3-70-g09d2