Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-06-07 12:40:24 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-06-07 12:40:24 +0200
commit5701ef953919230f1478294cabcc66ccdbe95e34 (patch)
tree722f409688719f8193f1fbfa77628f818e1c8961
parent25e835ce3e42d2c04cca9b2379723af7984c6fee (diff)
Started working on the load_layout function
-rw-r--r--archinstall/lib/disk.py6
-rw-r--r--examples/guided.py2
2 files changed, 7 insertions, 1 deletions
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()
"""