Added some debugging.

This commit is contained in:
Anton Hvornum 2021-03-29 18:10:02 +02:00
parent 1b903550b5
commit 8c8a441c26
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 3 additions and 1 deletions

View File

@ -322,7 +322,9 @@ class Partition():
else:
raise UnknownFilesystemFormat(f"Fileformat '{filesystem}' is not yet implemented.")
if get_filesystem_type(path) == 'crypto_LUKS':
print('Checking if encrypted:', path)
print('Also checking:', self.real_device)
if get_filesystem_type(path) == 'crypto_LUKS' or get_filesystem_type(self.real_device) == 'crypto_LUKS':
self.encrypted = True
return True