Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorArtikusHG <24320212+ArtikusHG@users.noreply.github.com>2023-06-22 20:49:08 +0000
committerGitHub <noreply@github.com>2023-06-22 22:49:08 +0200
commit748f03cdb1fbd28becf2d455d7137b21934f84fe (patch)
tree5968f95452ba68e49e03da4f2d460211f9455329 /archinstall
parent72661dbf9bfbd12e42425066f9d5ce7c887f40c7 (diff)
Fix crash when libfido2 is not installed (#1893)
Co-authored-by: ArtikusHG <artiomoleynic@gmail.com>
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk/fido.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/lib/disk/fido.py b/archinstall/lib/disk/fido.py
index 97c38d84..83b85d08 100644
--- a/archinstall/lib/disk/fido.py
+++ b/archinstall/lib/disk/fido.py
@@ -36,7 +36,11 @@ class Fido2:
# to prevent continous reloading which will slow
# down moving the cursor in the menu
if not cls._loaded or reload:
- ret: Optional[str] = SysCommand(f"systemd-cryptenroll --fido2-device=list").decode('UTF-8')
+ ret = ""
+ try:
+ ret = Optional[str] = SysCommand(f"systemd-cryptenroll --fido2-device=list").decode('UTF-8')
+ except:
+ error('fido2 support is most likely not installed')
if not ret:
error('Unable to retrieve fido2 devices')
return []