Forgot to check for HSM while mounting ordered layout

This commit is contained in:
Anton Hvornum 2022-05-26 18:56:15 +02:00
parent c93482a8b9
commit e19ef44630
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 3 additions and 2 deletions

View File

@ -260,6 +260,7 @@ class Installer:
partition['device_instance'] = unlocked_device partition['device_instance'] = unlocked_device
if self._has_root(partition) and partition.get('generate-encryption-key-file', False) is False: if self._has_root(partition) and partition.get('generate-encryption-key-file', False) is False:
if storage['arguments'].get('HSM'):
hsm_device_path = storage['arguments']['HSM'] hsm_device_path = storage['arguments']['HSM']
fido2_enroll(hsm_device_path, partition['device_instance'], password) fido2_enroll(hsm_device_path, partition['device_instance'], password)