From 5701ef953919230f1478294cabcc66ccdbe95e34 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 7 Jun 2021 12:40:24 +0200 Subject: Started working on the load_layout function --- archinstall/lib/disk.py | 6 ++++++ examples/guided.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index 58e2eb59..0c46e779 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -570,6 +570,12 @@ class Filesystem: SysCommand('sync') return True + def load_layout(self, layout :dict): + for partition in layout: + print(partition) + + exit(0) + def find_partition(self, mountpoint): for partition in self.blockdevice: if partition.target_mountpoint == mountpoint or partition.mountpoint == mountpoint: diff --git a/examples/guided.py b/examples/guided.py index a2cd29fc..b4c12fd6 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -206,7 +206,7 @@ def perform_filesystem_operations(): """ if archinstall.arguments.get('harddrives', None): - print(f" ! Formatting {archinstall.arguments['harddrive']} in ", end='') + print(f" ! Formatting {archinstall.arguments['harddrives']} in ", end='') archinstall.do_countdown() """ -- cgit v1.2.3-54-g00ecf