Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/partitioning_menu.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-05-12 02:30:09 +1000
committerGitHub <noreply@github.com>2023-05-11 18:30:09 +0200
commit89cefb9a1c7d4c4968e7d8645149078e601c9d1c (patch)
tree12c84bdcef1b0ef3f8a21977e25c7f0f89388138 /archinstall/lib/disk/partitioning_menu.py
parent6e6b850a8f687b193172aaa321d49bd2956c1d4f (diff)
Cleanup imports and unused code (#1801)
* Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/disk/partitioning_menu.py')
-rw-r--r--archinstall/lib/disk/partitioning_menu.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/archinstall/lib/disk/partitioning_menu.py b/archinstall/lib/disk/partitioning_menu.py
index 686e8c29..89cf6293 100644
--- a/archinstall/lib/disk/partitioning_menu.py
+++ b/archinstall/lib/disk/partitioning_menu.py
@@ -1,13 +1,12 @@
from __future__ import annotations
-import logging
from pathlib import Path
from typing import Any, Dict, TYPE_CHECKING, List, Optional, Tuple
from .device_model import PartitionModification, FilesystemType, BDevice, Size, Unit, PartitionType, PartitionFlag, \
ModificationStatus
from ..menu import Menu, ListManager, MenuSelection, TextInput
-from ..output import FormattedOutput, log
+from ..output import FormattedOutput, warn
from .subvolume_menu import SubvolumeMenu
if TYPE_CHECKING:
@@ -229,7 +228,7 @@ class PartitioningList(ListManager):
if not start_sector or self._validate_sector(start_sector):
break
- log(f'Invalid start sector entered: {start_sector}', fg='red', level=logging.INFO)
+ warn(f'Invalid start sector entered: {start_sector}')
if not start_sector:
start_sector = str(largest_free_area.start)
@@ -245,7 +244,7 @@ class PartitioningList(ListManager):
if not end_value or self._validate_sector(start_sector, end_value):
break
- log(f'Invalid end sector entered: {start_sector}', fg='red', level=logging.INFO)
+ warn(f'Invalid end sector entered: {start_sector}')
# override the default value with the user value
if end_value:
@@ -300,7 +299,7 @@ class PartitioningList(ListManager):
if choice.value == Menu.no():
return []
- from ..user_interaction.disk_conf import suggest_single_disk_layout
+ from ..interactions.disk_conf import suggest_single_disk_layout
device_modification = suggest_single_disk_layout(self._device)
return device_modification.partitions