Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-22 01:41:54 +0530
committerYash Tripathi <tripathiyash97@gmail.com>2021-05-22 01:41:54 +0530
commitd718da243fd57eb8b6c3d92913b6da9890ba7854 (patch)
tree6f7df57d9bfb50cdb4c6627155003498b140b937
parente01e8a42de147cc0f84b786d5e37b1224011474c (diff)
parente4c471b631632b7f419ba7ff4c982df406305a3c (diff)
Merge branch 'archlinux:master' into add-config-readme
-rw-r--r--examples/custom-command-sample.json1
-rw-r--r--examples/guided.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/custom-command-sample.json b/examples/custom-command-sample.json
index 0518d3db..5e7a70e3 100644
--- a/examples/custom-command-sample.json
+++ b/examples/custom-command-sample.json
@@ -26,6 +26,7 @@
},
"packages": ["docker", "git", "wget", "zsh"],
"profile": "gnome",
+ "services": ["docker"],
"superusers": {
"devel": {
"!password": "devel"
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)