Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 08:56:41 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 08:56:41 +0200
commita156f224a87a02d6b0f9a54eef2ce18e418e5187 (patch)
tree469d052a6ecfd4498125f4f77eafb5d3a8ec8bb0 /archinstall
parent6cba404b75abb3faa939c8d6c7e29610591f3cc3 (diff)
Fixing un-encrypted drives matching on block encrypted.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index c1db3dc9..85b08bc0 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -142,7 +142,8 @@ class Partition():
self.target_mountpoint = mountpoint
self.filesystem = filesystem
self.size = size # TODO: Refresh?
- self._encrypted = encrypted
+ self._encrypted = None
+ self.encrypted = encrypted
self.allow_formatting = False # A fail-safe for unconfigured partitions, such as windows NTFS partitions.
if mountpoint:
@@ -161,7 +162,7 @@ class Partition():
self.filesystem = fstype
if self.filesystem == 'crypto_LUKS':
- self._encrypted = True
+ self.encrypted = True
def __lt__(self, left_comparitor):
if type(left_comparitor) == Partition: