Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 17:53:30 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 17:53:30 +0200
commit1b903550b588d1ade90eae034b757e2950398550 (patch)
tree3fc442c5d4acc9a9551a615c6b821dc1904ab870 /archinstall/lib
parent0c86440e2e63c5e66e64679e79ff675b9cc3f1dd (diff)
Reworking cache logic to not loose .encrypted flag on partitions after flushing cache.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index f0651685..18006311 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -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