Started working on the load_layout function

This commit is contained in:
Anton Hvornum 2021-06-07 12:40:24 +02:00
parent 25e835ce3e
commit 5701ef9539
2 changed files with 7 additions and 1 deletions

View File

@ -570,6 +570,12 @@ class Filesystem:
SysCommand('sync') SysCommand('sync')
return True return True
def load_layout(self, layout :dict):
for partition in layout:
print(partition)
exit(0)
def find_partition(self, mountpoint): def find_partition(self, mountpoint):
for partition in self.blockdevice: for partition in self.blockdevice:
if partition.target_mountpoint == mountpoint or partition.mountpoint == mountpoint: if partition.target_mountpoint == mountpoint or partition.mountpoint == mountpoint:

View File

@ -206,7 +206,7 @@ def perform_filesystem_operations():
""" """
if archinstall.arguments.get('harddrives', None): 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() archinstall.do_countdown()
""" """