Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 18:11:46 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 18:11:46 +0200
commita50aa59060591a121a7b58e58487b6a2840825f3 (patch)
treea2bdefe6205388899336a75392e2969199a25b91
parent8c8a441c2627a180671eb7fcd95b3a0f8d0a102e (diff)
Adding .encrypted logic after .format calls to correctly identify partitions as encrypted/not-encrypted. This after a .flush_cache has been called.
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 23fbf621..9ad49ac2 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -322,10 +322,10 @@ class Partition():
else:
raise UnknownFilesystemFormat(f"Fileformat '{filesystem}' is not yet implemented.")
- 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
+ else:
+ self.encrypted = False
return True