Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 12:05:39 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 12:05:39 +0100
commitb3a5afea60ada944905b45a7150c91a5a8a09fcc (patch)
treeddd4f0a5a98464b4ba3fad86ef9981e5ae33a8bf /archinstall/lib
parent747d620596c41094a66a8ae1e39104bc05d90846 (diff)
Tweaked the filesystem definition setup for Partition(). Overriding it programatically should be possible for some meta stuff.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index f78907d7..d3f4b069 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -146,14 +146,13 @@ 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
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)}")
if (target := mount_information.get('target', None)):
self.mountpoint = target
- if (fstype := mount_information.get('fstype', fstype)):
+ if not self.filesystem and (fstype := mount_information.get('fstype', get_filesystem_type(self.real_device))):
self.filesystem = fstype
if self.filesystem == 'crypto_LUKS':