Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-05-26 18:56:15 +0200
committerAnton Hvornum <anton@hvornum.se>2022-05-26 18:56:15 +0200
commite19ef4463052201ae4635e9dc807fe1fc4d165a3 (patch)
treefbdd04cc69e1caa742bd1679e5fe93d80b751c62 /archinstall/lib
parentc93482a8b943a593608d8bae7156e357ed0002d5 (diff)
Forgot to check for HSM while mounting ordered layout
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 3e04de59..5cedc9d6 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -260,8 +260,9 @@ class Installer:
partition['device_instance'] = unlocked_device
if self._has_root(partition) and partition.get('generate-encryption-key-file', False) is False:
- hsm_device_path = storage['arguments']['HSM']
- fido2_enroll(hsm_device_path, partition['device_instance'], password)
+ if storage['arguments'].get('HSM'):
+ hsm_device_path = storage['arguments']['HSM']
+ fido2_enroll(hsm_device_path, partition['device_instance'], password)
# we manage the btrfs partitions
if any(btrfs_subvolumes := [entry for entry in list_part if entry.get('btrfs', {}).get('subvolumes', {})]):