Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-21 06:29:10 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-21 09:00:32 -0400
commitebf59809432ac205d7b77b44dbcf611d98078a0c (patch)
tree6f7df57d9bfb50cdb4c6627155003498b140b937 /examples/guided.py
parent54a693be4fa2fbce83fd894b5ac3b0909f3a1e10 (diff)
Add ability to provide an array of services to enable in config file
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index d23c483e..f61548e1 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -379,6 +379,11 @@ def perform_installation(mountpoint):
archinstall.log(' * Profile\'s post configuration requirements was not fulfilled.', fg='red')
exit(1)
+ # 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'])
+
# If the user provided custom commands to be run post-installation, execute them now.
if archinstall.arguments.get('custom-commands', None):
run_custom_user_commands(archinstall.arguments['custom-commands'], installation)