Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/interactive_installation.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/interactive_installation.py')
-rw-r--r--examples/interactive_installation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/interactive_installation.py b/examples/interactive_installation.py
index a78b1712..f72f110b 100644
--- a/examples/interactive_installation.py
+++ b/examples/interactive_installation.py
@@ -147,7 +147,7 @@ def perform_installation(mountpoint: Path):
handler.config_installer(installation)
if archinstall.arguments.get('packages', None) and archinstall.arguments.get('packages', None)[0] != '':
- installation.add_additional_packages(archinstall.arguments.get('packages', None))
+ installation.add_additional_packages(archinstall.arguments.get('packages', []))
if users := archinstall.arguments.get('!users', None):
installation.create_users(users)
@@ -186,7 +186,7 @@ def perform_installation(mountpoint: Path):
# If the user provided a list of services to be enabled, pass the list to the enable_service function.
# Note that while it's called enable_service, it can actually take a list of services and iterate it.
if archinstall.arguments.get('services', None):
- installation.enable_service(*archinstall.arguments['services'])
+ installation.enable_service(archinstall.arguments.get('services', []))
# If the user provided custom commands to be run post-installation, execute them now.
if archinstall.arguments.get('custom-commands', None):