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:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-02 10:08:16 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-02 10:08:16 +0530
commitb974b93004efa9912e404f5d3fca7c44a58dc0e3 (patch)
tree22532a3476282c08b7ddf6069357ed6738cca57d /archinstall/lib/disk.py
parentf4e616cd9e1328a83fdf6f1541fd495292474642 (diff)
fixed some issues with the changes
Diffstat (limited to 'archinstall/lib/disk.py')
-rw-r--r--archinstall/lib/disk.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index fbc11ca3..8e9e0234 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -390,12 +390,9 @@ class Filesystem():
# TODO:
# When instance of a HDD is selected, check all usages and gracefully unmount them
# as well as close any crypto handles.
- def __init__(self, blockdevice):
+ def __init__(self, blockdevice,mode):
self.blockdevice = blockdevice
- if hasUEFI():
- self.mode = GPT
- else:
- self.mode = MBR
+ self.mode = mode
def __enter__(self, *args, **kwargs):
if self.blockdevice.keep_partitions is False: