From 1168efb01e62a6b95e7d0e1b44c649778da4e83c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 12 Nov 2021 11:22:30 +0000 Subject: 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. --- archinstall/lib/disk/filesystem.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'archinstall/lib/disk') 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): -- cgit v1.2.3-70-g09d2