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-16 14:06:02 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-16 14:06:02 +0000
commit29aa991ab5caf4f48cad1e5a4393234542a358c1 (patch)
tree01a0cde886e409a94c1ec0bb9e749ff69c6407cf /archinstall
parent1168efb01e62a6b95e7d0e1b44c649778da4e83c (diff)
Improved error message when failing to detect mount information.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 3b8f9612..bb2363d8 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -186,8 +186,10 @@ class Installer:
mountpoints[mountpoint]['device_instance'].mount(f"{self.target}{mountpoint}")
time.sleep(1)
- if not get_mount_info(f"{self.target}{mountpoint}", traverse=False):
- raise DiskError(f"Target {self.target}{mountpoint} never got mounted properly.")
+ try:
+ get_mount_info(f"{self.target}{mountpoint}", traverse=False)
+ except DiskError as err:
+ raise DiskError(f"Target {self.target}{mountpoint} never got mounted properly (unable to get mount information using findmnt).")
if (subvolumes := mountpoints[mountpoint].get('btrfs', {}).get('subvolumes', {})):
for name, location in subvolumes.items():