Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:54:03 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:54:03 +0100
commit4e8084bddb989646bf74b6c8883fc66622441221 (patch)
treeab7779127eefdeb5fdf3f8666940bcc3c2ebeada /archinstall
parentce646a93948a6d6f5260a9e6e7f47282f956a56c (diff)
Fixed a issue with blkid where it would raise an exception when there was not filesystem on the partition.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 75cecb0b..db58f3ce 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -487,5 +487,6 @@ def get_mount_info(path):
return output['filesystems'][0]
def get_filesystem_type(path):
- output = b''.join(sys_command(f"blkid -o value -s TYPE {path}"))
- return output.strip().decode('UTF-8') \ No newline at end of file
+ if (handle := sys_command(f"blkid -o value -s TYPE {path}")).exit_code != 0:
+ return None
+ return b''.join(handle).strip().decode('UTF-8') \ No newline at end of file