Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-13 11:25:33 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-13 11:25:33 +0200
commitaf790faf7af3412f13bb77b7c5ea2c85f72a1a47 (patch)
treee0eb847f1ceb9c2d7802bf3c85cf02160afbb598 /archinstall/lib/user_interaction.py
parent9b6d7021a89116f09ad5324f19d7d08b9ec2856b (diff)
Added multi-disk suggested layout. It's sorted on performance, and the first relevant disk with the closest size to a desired size will be used for root, and the same (exluding the one already used) will be used for /home
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 228fa568..07f98328 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -9,7 +9,7 @@ import signal
import sys
import time
-from .disk import BlockDevice, valid_fs_type
+from .disk import BlockDevice, valid_fs_type, suggest_single_disk_layout, suggest_multi_disk_layout
from .exceptions import *
from .general import SysCommand
from .hardware import AVAILABLE_GFX_DRIVERS, has_uefi
@@ -601,9 +601,9 @@ def partition_overlap(partitions :list, start :str, end :str) -> bool:
def get_default_partition_layout(block_devices):
if len(block_devices) == 1:
- return suggest_single_disk_layout(blockdevices[0])
+ return suggest_single_disk_layout(block_devices[0])
else:
- return suggest_multi_disk_layout(blockdevices)
+ return suggest_multi_disk_layout(block_devices)
# TODO: Implement sane generic layout for 2+ drives