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 return True
def detect_encryption(self, partition): def detect_encryption(self, partition):
part = Partition(partition.parent, None, autodetect_filesystem=True)
if partition.encrypted: if partition.encrypted:
return partition return partition
elif partition.parent not in partition.path and Partition(partition.parent, None, elif partition.parent not in partition.path and part.filesystem == 'crypto_LUKS':
autodetect_filesystem=True).filesystem == 'crypto_LUKS': return part
return Partition(partition.parent, None, autodetect_filesystem=True)
return False return False