Fix partition -> part suggestion by Torxed

This commit is contained in:
Dylan Taylor 2021-05-15 13:33:30 -04:00
parent 8bc361970b
commit 45d8c1c336
1 changed files with 3 additions and 3 deletions

View File

@ -274,11 +274,11 @@ class Installer():
return True
def detect_encryption(self, partition):
part = Partition(partition.parent, None, autodetect_filesystem=True)
if partition.encrypted:
return partition
elif partition.parent not in partition.path and Partition(partition.parent, None,
autodetect_filesystem=True).filesystem == 'crypto_LUKS':
return Partition(partition.parent, None, autodetect_filesystem=True)
elif partition.parent not in partition.path and part.filesystem == 'crypto_LUKS':
return part
return False