Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-27 22:24:09 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-27 22:24:09 -0400
commiteb8f45952531394875e5911b89ae013fe61f9171 (patch)
tree542c172ec860aa5f3a0e733eca1211d284f02899 /examples
parent4bb644bf5b8ce70bc08c76deeeb6fe71a3c36c1a (diff)
Write user configuration JSON to a file in logs directory
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index a43fc9b1..bad9b625 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -258,7 +258,10 @@ def perform_installation_steps():
print()
print('This is your chosen configuration:')
archinstall.log("-- Guided template chosen (with below config) --", level=logging.DEBUG)
- archinstall.log(json.dumps(archinstall.arguments, indent=4, sort_keys=True, cls=archinstall.JSON), level=logging.INFO)
+ user_configuration = json.dumps(archinstall.arguments, indent=4, sort_keys=True, cls=archinstall.JSON)
+ archinstall.log(user_configuration, level=logging.INFO)
+ with open("/var/log/archinstall/user_configuration.json") as config_file:
+ config_file.write(user_configuration)
print()
if not archinstall.arguments.get('silent'):