Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/helpers.py
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-03-26 15:40:08 -0400
committerGitHub <noreply@github.com>2023-03-26 21:40:08 +0200
commitf6113107d6c7df763301de0816dcd1ae1d4ace4d (patch)
treeb997bb160ac9440124a0f65f9a980eb6607ff026 /archinstall/lib/disk/helpers.py
parent79eb6bba627c4c70f24a265ac0b2ef9cbfbbd211 (diff)
Change exit status indications to exit codes (#1685)
Diffstat (limited to 'archinstall/lib/disk/helpers.py')
-rw-r--r--archinstall/lib/disk/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py
index aea794f5..80d0cb53 100644
--- a/archinstall/lib/disk/helpers.py
+++ b/archinstall/lib/disk/helpers.py
@@ -233,7 +233,7 @@ def get_blockdevice_info(device_path, exclude_iso_dev :bool = True) -> Dict[str,
information = blkid(f'blkid -p -o export {device_path}')
return enrich_blockdevice_information(information)
except SysCallError as ex:
- if ex.exit_code in (512, 2):
+ if ex.exit_code == 2:
# Assume that it's a loop device, and try to get info on it
try:
resolved_device_name = device_path.readlink().name