index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archinstall/lib/disk.py | 6 | ||||
-rw-r--r-- | examples/guided.py | 4 |
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index 3bc2fa0f..e804e0eb 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -243,11 +243,7 @@ class BlockDevice: json() has precedence over __dump__, so this is a way to give less/partial information for user readability. """ - return { - 'path': self.path, - 'size': self.info['size'] if 'size' in self.info else '<unknown>', - 'model': self.info['model'] if 'model' in self.info else '<unknown>' - } + return self.path def __dump__(self): return { 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'): |