Fixed an import of not yet loaded module
This commit is contained in:
parent
de80fdc153
commit
fe164a700c
|
|
@ -6,7 +6,6 @@ from ..menu import Menu
|
||||||
from ..output import log
|
from ..output import log
|
||||||
|
|
||||||
from ..disk.validators import fs_types
|
from ..disk.validators import fs_types
|
||||||
from .subvolume_config import SubvolumeList
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from ..disk import BlockDevice
|
from ..disk import BlockDevice
|
||||||
|
|
@ -298,6 +297,8 @@ def manage_new_and_existing_partitions(block_device: 'BlockDevice') -> Dict[str,
|
||||||
block_device_struct["partitions"][partition]['filesystem']['format'] = fstype
|
block_device_struct["partitions"][partition]['filesystem']['format'] = fstype
|
||||||
|
|
||||||
elif task == set_btrfs_subvolumes:
|
elif task == set_btrfs_subvolumes:
|
||||||
|
from .subvolume_config import SubvolumeList
|
||||||
|
|
||||||
# TODO get preexisting partitions
|
# TODO get preexisting partitions
|
||||||
title = _('{}\n\nSelect which partition to set subvolumes on').format(current_layout)
|
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)
|
partition = select_partition(title, block_device_struct["partitions"],filter=lambda x:True if x.get('filesystem',{}).get('format') == 'btrfs' else False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue