fix(encryption): add tpm2-tss dracut module explicitly for TPM2 LUKS
This commit is contained in:
@@ -14,11 +14,11 @@
|
|||||||
install_items+=" {{ configuration_luks_keyfile_path }} "
|
install_items+=" {{ configuration_luks_keyfile_path }} "
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if configuration_luks_auto_method == 'tpm2' %}
|
{% if configuration_luks_auto_method == 'tpm2' %}
|
||||||
|
add_dracutmodules+=" tpm2-tss "
|
||||||
install_items+=" {{ configuration_luks_tpm2_token_lib | default('') }} "
|
install_items+=" {{ configuration_luks_tpm2_token_lib | default('') }} "
|
||||||
{% endif %}
|
{% endif %}
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
# --- Kernel cmdline: write rd.luks.* args for dracut ---
|
|
||||||
- name: Ensure kernel cmdline directory exists
|
- name: Ensure kernel cmdline directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /mnt/etc/kernel
|
path: /mnt/etc/kernel
|
||||||
@@ -58,7 +58,6 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
content: "{{ _dracut_kernel_cmdline }}\n"
|
content: "{{ _dracut_kernel_cmdline }}\n"
|
||||||
|
|
||||||
# --- BLS entries: RedHat-specific ---
|
|
||||||
- name: Update BLS entries with LUKS kernel cmdline
|
- name: Update BLS entries with LUKS kernel cmdline
|
||||||
when: os_family == 'RedHat'
|
when: os_family == 'RedHat'
|
||||||
vars:
|
vars:
|
||||||
|
|||||||
Reference in New Issue
Block a user