Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-03-28 16:08:05 +0200
committerAnton Hvornum <anton@hvornum.se>2022-03-28 16:08:05 +0200
commitfe164a700cb71901279e5848f43cb70a534d2ad6 (patch)
treeb88e38c9b78e9bf39f653ad1b4ea5bfe3cb788e8 /archinstall/lib/user_interaction
parentde80fdc153763583c081120cc60c8595d9de97d4 (diff)
Fixed an import of not yet loaded module
Diffstat (limited to 'archinstall/lib/user_interaction')
-rw-r--r--archinstall/lib/user_interaction/partitioning_conf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction/partitioning_conf.py b/archinstall/lib/user_interaction/partitioning_conf.py
index 64c23efe..a1abd732 100644
--- a/archinstall/lib/user_interaction/partitioning_conf.py
+++ b/archinstall/lib/user_interaction/partitioning_conf.py
@@ -6,7 +6,6 @@ from ..menu import Menu
from ..output import log
from ..disk.validators import fs_types
-from .subvolume_config import SubvolumeList
if TYPE_CHECKING:
from ..disk import BlockDevice
@@ -157,7 +156,7 @@ def manage_new_and_existing_partitions(block_device: 'BlockDevice') -> Dict[str,
if task == new_partition:
from ..disk import valid_parted_position
-
+
# if partition_type == 'gpt':
# # https://www.gnu.org/software/parted/manual/html_node/mkpart.html
# # https://www.gnu.org/software/parted/manual/html_node/mklabel.html
@@ -298,6 +297,8 @@ def manage_new_and_existing_partitions(block_device: 'BlockDevice') -> Dict[str,
block_device_struct["partitions"][partition]['filesystem']['format'] = fstype
elif task == set_btrfs_subvolumes:
+ from .subvolume_config import SubvolumeList
+
# TODO get preexisting partitions
title = _('{}\n\nSelect which partition to set subvolumes on').format(current_layout)
partition = select_partition(title, block_device_struct["partitions"],filter=lambda x:True if x.get('filesystem',{}).get('format') == 'btrfs' else False)