Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2022-10-03 10:42:10 -0400
committerGitHub <noreply@github.com>2022-10-03 16:42:10 +0200
commit977976f88e761ced7d5bc9f39b32e2296ee91806 (patch)
treeee4b47ed02a3d4a1ff1fddd584a16d5bb9241f45 /examples
parent40e4046633d857929b8fd1bfa121b38937add81c (diff)
Add hostname and locales as parameters to `minimal_installation()` (#1458)
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py6
-rw-r--r--examples/swiss.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 6f289caa..ad178207 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -192,9 +192,9 @@ def perform_installation(mountpoint):
enable_testing = False
enable_multilib = False
- if installation.minimal_installation(testing=enable_testing, multilib=enable_multilib):
- installation.set_locale(archinstall.arguments['sys-language'], archinstall.arguments['sys-encoding'].upper())
- installation.set_hostname(archinstall.arguments['hostname'])
+ if installation.minimal_installation(
+ testing=enable_testing, multilib=enable_multilib, hostname=archinstall.arguments['hostname'],
+ locales=[f"{archinstall.arguments['sys-language']} {archinstall.arguments['sys-encoding'].upper()}"]):
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
diff --git a/examples/swiss.py b/examples/swiss.py
index da45cd18..419bd859 100644
--- a/examples/swiss.py
+++ b/examples/swiss.py
@@ -402,9 +402,9 @@ def os_setup(installation):
# Set mirrors used by pacstrap (outside of installation)
if archinstall.arguments.get('mirror-region', None):
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
- if installation.minimal_installation():
- installation.set_locale(archinstall.arguments['sys-language'], archinstall.arguments['sys-encoding'].upper())
- installation.set_hostname(archinstall.arguments['hostname'])
+ if installation.minimal_installation(
+ hostname=archinstall.arguments['hostname'],
+ locales=[f"{archinstall.arguments['sys-language']} {archinstall.arguments['sys-encoding'].upper()}"]):
if archinstall.arguments['mirror-region'].get("mirrors", None) is not None:
installation.set_mirrors(
archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium