fix(encryption): add warning before silent TPM2-to-keyfile fallback

This commit is contained in:
2026-02-20 21:51:12 +01:00
parent ac72fdc4a6
commit c82e4afc4d

View File

@@ -79,6 +79,12 @@
chroot stderr={{ configuration_luks_tpm2_enroll_chroot.stderr | default('') }},
host stderr={{ configuration_luks_tpm2_enroll_host.stderr | default('') }}
rescue:
- name: Warn about TPM2 enrollment failure
ansible.builtin.debug:
msg: >-
TPM2 enrollment failed — falling back to keyfile auto-decrypt.
The system will use a keyfile instead of TPM2 for automatic LUKS unlock.
- name: Fallback to keyfile auto-decrypt
ansible.builtin.set_fact:
configuration_luks_auto_method: keyfile