Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:36:15 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:36:15 +0100
commitc56d4d958ef1797bbdebb883801a905169d454f6 (patch)
treebb9867c4d03d7bf7db4cfc5f2c9fa5af04c0d4fb /archinstall/lib/disk.py
parent56d673d2a509bdd881fff51892f564a66384c0c2 (diff)
Debugging some tweaks
Diffstat (limited to 'archinstall/lib/disk.py')
-rw-r--r--archinstall/lib/disk.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 958284cf..3bbd9344 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -146,7 +146,7 @@ class Partition():
self.mount(mountpoint)
mount_information = get_mount_info(self.path)
- fstype = get_filesystem_type(self.real_device) # blkid -o value -s TYPE self.path
+ fstype = get_filesystem_type(self.real_devicecryptse) # blkid -o value -s TYPE self.path
if self.mountpoint != mount_information.get('target', None) and mountpoint:
raise DiskError(f"{self} was given a mountpoint but the actual mountpoint differs: {mount_information.get('target', None)}")
@@ -156,6 +156,12 @@ class Partition():
if (fstype := mount_information.get('fstype', fstype)):
self.filesystem = fstype
+ if self.filesystem == 'crypto_LUKS':
+ # TODO: Explore other options in terms of handling a two-layer filesystem option.
+ # Currently if we keep crypto_LUKS then the installer won't know what to format inside.
+ self.encrypted = True
+ self.filesystem = None
+
def __lt__(self, left_comparitor):
if type(left_comparitor) == Partition:
left_comparitor = left_comparitor.path
@@ -269,11 +275,11 @@ class Partition():
raise DiskError(f'Could not format {path} with {filesystem} because: {b"".join(handle)}')
self.filesystem = 'f2fs'
- elif filesystem == 'crypto_LUKS':
- from .luks import luks2
- encrypted_partition = luks2(self, None, None)
- encrypted_partition.format(path)
- self.filesystem = 'crypto_LUKS'
+ #elif filesystem == 'crypto_LUKS':
+ # from .luks import luks2
+ # encrypted_partition = luks2(self, None, None)
+ # encrypted_partition.format(path)
+ # self.filesystem = 'crypto_LUKS'
else:
raise UnknownFilesystemFormat(f"Fileformat '{filesystem}' is not yet implemented.")