Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-07-03 14:27:49 +0200
committerAnton Hvornum <anton@hvornum.se>2021-07-03 14:27:49 +0200
commit51f2eca60e9d77a2675ed8828c2fdadfd065b7a2 (patch)
tree0591f45211846d9f10524c1b3ebd7dbc351135ca /examples
parente965eaf546a73f76f5e928aa03154ff5c482fb4c (diff)
Saving partitioning layout in a layout file (JSON format)
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 0d409657..206a776b 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -190,6 +190,10 @@ def perform_filesystem_operations():
archinstall.log(user_configuration, level=logging.INFO)
with open("/var/log/archinstall/user_configuration.json", "w") as config_file:
config_file.write(user_configuration)
+ user_disk_layout = json.dumps(archinstall.storage['disk_layouts'], indent=4, sort_keys=True, cls=archinstall.JSON)
+ archinstall.log(user_disk_layout, level=logging.INFO)
+ with open("/var/log/archinstall/user_disk_layout.json", "w") as disk_layout_file:
+ disk_layout_file.write(user_disk_layout)
print()
if archinstall.arguments.get('dry_run'):