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-11-11 15:31:51 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-11 15:31:51 +0000
commit6d2126a597c1fc9b3bc9ffc1d587a8fabbb51882 (patch)
tree2aa4a1322056e5cadba635910b21a982ebb20042 /archinstall
parent6f8b064ec521e277e1028caafb8d4dc522987267 (diff)
Dealt with exception in partition
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk/partition.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py
index b5c252a4..3630a6f4 100644
--- a/archinstall/lib/disk/partition.py
+++ b/archinstall/lib/disk/partition.py
@@ -32,7 +32,10 @@ class Partition:
if mountpoint:
self.mount(mountpoint)
- mount_information = get_mount_info(self.path)
+ try:
+ mount_information = get_mount_info(self.path)
+ except DiskError:
+ mount_information = {}
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)}")