Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/filesystem.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-12 11:22:30 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-12 11:22:30 +0000
commit1168efb01e62a6b95e7d0e1b44c649778da4e83c (patch)
tree0edc236c5c3b9ab93f92337a63dc3db74f67ccdd /archinstall/lib/disk/filesystem.py
parentca52c796a55fd34cc1309f26bab86e15da722182 (diff)
Removed the GPT vs MBR lookup on __enter__ as it's no longer necessary to validate this on instance creation. load_layout() Uses this only to detect what partition table format it should use when wiping the drive. Other than that we only check if MBR and part numbers are > 3, that's the only use of this variable at this moment.
Diffstat (limited to 'archinstall/lib/disk/filesystem.py')
-rw-r--r--archinstall/lib/disk/filesystem.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index cf2a286e..2eb1864d 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -20,12 +20,6 @@ class Filesystem:
self.mode = mode
def __enter__(self, *args, **kwargs):
- # TODO: partition_table_type is hardcoded to GPT at the moment. This has to be changed.
- if self.mode == self.blockdevice.partition_table_type:
- log(f'Kept partition format {self.mode} for {self.blockdevice}', level=logging.DEBUG)
- else:
- raise DiskError(f'The selected partition table format {self.mode} does not match that of {self.blockdevice}.')
-
return self
def __repr__(self):