Removed usage of deprecated function

This commit is contained in:
Anton Hvornum 2022-05-27 21:44:47 +02:00
parent 3c04a6b196
commit 4d57630c90
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ from .disk import get_partitions_in_use, Partition
from .general import SysCommand, generate_password from .general import SysCommand, generate_password
from .hardware import has_uefi, is_vm, cpu_vendor from .hardware import has_uefi, is_vm, cpu_vendor
from .locale_helpers import verify_keyboard_layout, verify_x11_keyboard_layout from .locale_helpers import verify_keyboard_layout, verify_x11_keyboard_layout
from .disk.helpers import get_mount_info from .disk.helpers import findmnt
from .mirrors import use_mirrors from .mirrors import use_mirrors
from .plugins import plugins from .plugins import plugins
from .storage import storage from .storage import storage
@ -327,7 +327,7 @@ class Installer:
time.sleep(1) time.sleep(1)
try: try:
get_mount_info(f"{self.target}{mountpoint}", traverse=False) findmnt(f"{self.target}{mountpoint}", traverse=False)
except DiskError: except DiskError:
raise DiskError(f"Target {self.target}{mountpoint} never got mounted properly (unable to get mount information using findmnt).") raise DiskError(f"Target {self.target}{mountpoint} never got mounted properly (unable to get mount information using findmnt).")