Attempting to correct some inconsitencies in disk-parent reporting.

This commit is contained in:
Anton Hvornum 2021-04-09 23:18:04 +02:00
parent e49b73cef4
commit 0531e3a0d6
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,8 @@ class Partition():
if not self.filesystem and autodetect_filesystem:
print(f'Auto-detecting filesystem for: {path}')
print('Mount information:', mount_information.get('fstype', None))
print('Real device:', get_filesystem_type(self.real_device))
if (fstype := mount_information.get('fstype', get_filesystem_type(self.real_device))):
print('Real device:', get_filesystem_type(path))
if (fstype := mount_information.get('fstype', get_filesystem_type(path))):
self.filesystem = fstype
if self.filesystem == 'crypto_LUKS':