Reworking cache logic to not loose .encrypted flag on partitions after flushing cache.

This commit is contained in:
Anton Hvornum 2021-03-29 17:53:30 +02:00
parent 0c86440e2e
commit 1b903550b5
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ class Partition():
else:
raise UnknownFilesystemFormat(f"Fileformat '{filesystem}' is not yet implemented.")
self.encrypted = False if self.filesystem != 'crypto_LUKS' else True
if get_filesystem_type(path) == 'crypto_LUKS':
self.encrypted = True
return True