diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2018-03-08 15:23:27 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2018-03-08 11:18:33 -0500 |
| commit | 79cdb2a215de2ace7d1bf0a294165a04b726c70a (patch) | |
| tree | 972796b04a66ce7f1d121a46719c24efb5b83856 /lib/execute.c | |
| parent | 6c8d08c0af4768c715b79c8ec25141d56e34f8b4 (diff) | |
| download | efi-boot-shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a.tar.gz efi-boot-shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a.zip | |
Fix failure to boot on systems without a TPM
This commit fixes 2 issues with the TPM support code:
1) Remove "REQUIRE_TPM ?=" line from the Makefile, further down the Makefile
checks if REQUIRE_TPM is undefined, but the above line sets it to an empty
string, which is not the same as undefined. Without this handle_image fails
after the tpm_log_pe() call even if REQUIRE_TPM=1 once was not set when
building the shim
2) When secure-boot is disabled then shim_verify() would exit with the
status of tpm_log_pe(), which on systems with a TPM is an error. Combined
with the recent change to always install the shim protocols, this causes
grub to refuse to boot any kernel since the verify() call now always fails.
This commit fixes this by explicitly setting status = EFI_SUCCESS when
secure-boot is disabled.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/execute.c')
0 files changed, 0 insertions, 0 deletions
