Fixing un-encrypted drives matching on block encrypted.
This commit is contained in:
parent
6cba404b75
commit
a156f224a8
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -292,6 +292,7 @@ def perform_installation(device, boot_partition, language, mirrors):
|
|||
Only requirement is that the block devices are
|
||||
formatted and setup prior to entering this function.
|
||||
"""
|
||||
print('Installing on:', device)
|
||||
with archinstall.Installer(device, boot_partition=boot_partition, hostname=archinstall.arguments.get('hostname', 'Archinstall')) as installation:
|
||||
## if len(mirrors):
|
||||
# Certain services might be running that affects the system during installation.
|
||||
|
|
|
|||
Loading…
Reference in New Issue