From 15c594bcbaa24a4df821b2b3489072e064ea9b23 Mon Sep 17 00:00:00 2001 From: Werner Llácer Date: Mon, 25 Apr 2022 08:41:20 +0200 Subject: When using disk_layout files but not config file, we autofill the harddrives argument (#1067) --- archinstall/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archinstall') diff --git a/archinstall/__init__.py b/archinstall/__init__.py index 638ac08a..d207f4dc 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -230,6 +230,8 @@ def post_process_arguments(arguments): if not json_stream_to_structure('--disk_layouts',arguments['disk_layouts'],layout_storage): exit(1) else: + if arguments.get('harddrives') is None: + arguments['harddrives'] = [disk for disk in layout_storage] # backward compatibility. Change partition.format for partition.wipe for disk in layout_storage: for i,partition in enumerate(layout_storage[disk].get('partitions',[])): -- cgit v1.2.3-70-g09d2