Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 13:33:30 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 13:33:30 -0400
commit45d8c1c33637fb55c338e7fb19a1f05012fb1d3a (patch)
treeb25e0a994222ffb12c1d59332d4c187e62039710 /archinstall/lib
parent8bc361970b413c58f3520a4b8d22f8886899da50 (diff)
Fix partition -> part suggestion by Torxed
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 15bdf62e..f03492f7 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -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