Adds version to user_conf.json

The key is never read anywhere, but would be useful in debugging purposes.
This commit is contained in:
Anton Hvornum 2021-11-28 11:31:23 +01:00
parent 7fd26817a1
commit 5aaa8d9814
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ def perform_filesystem_operations():
print()
print('This is your chosen configuration:')
archinstall.log("-- Guided template chosen (with below config) --", level=logging.DEBUG)
user_configuration = json.dumps(archinstall.arguments, indent=4, sort_keys=True, cls=archinstall.JSON)
user_configuration = json.dumps({**archinstall.arguments, 'version' : archinstall.__version__} , indent=4, sort_keys=True, cls=archinstall.JSON)
archinstall.log(user_configuration, level=logging.INFO)
with open("/var/log/archinstall/user_configuration.json", "w") as config_file:
config_file.write(user_configuration)