Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-02-01 16:44:39 +0100
committerGitHub <noreply@github.com>2022-02-01 16:44:39 +0100
commite3adab13e837cbca619a7914b76c72e4d1e6d4d8 (patch)
tree219fc45610b85d700074b9baf65ff72ee53ca9a5 /archinstall/__init__.py
parent64bde666acae251ee4d8dd3c8166d14029f7f8fa (diff)
Issue923 (#927)
* Correct definition of btrfs standard layout * Solving issue 923. Standarize keyword "wipe" to signal the need of formatting a FS * flake8 complains
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index c0e9b8bd..f4793555 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -169,6 +169,12 @@ def post_process_arguments(arguments):
if not json_stream_to_structure('--disk_layouts',arguments['disk_layouts'],layout_storage):
exit(1)
else:
+ # backward compatibility. Change partition.format for partition.wipe
+ for disk in layout_storage:
+ for i,partition in enumerate(layout_storage[disk].get('partitions',[])):
+ if 'format' in partition:
+ partition['wipe'] = partition['format']
+ del partition['format']
arguments['disk_layouts'] = layout_storage