uefi: make the TPM optional for runtime again (Fixes: #1362)

It's intentional to use a different error message for library failure
so that we can tell if there is a regression in CI related to TPM usage.
This commit is contained in:
Mario Limonciello 2019-09-17 15:22:32 -05:00 committed by Mario Limonciello
parent 5206592347
commit 78987fb394

View File

@ -475,7 +475,10 @@ fu_uefi_device_add_system_checksum (FuDevice *device, GError **error)
if (!fu_uefi_pcrs_setup (pcrs, &error_local)) {
if (g_error_matches (error_local,
G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED)) {
G_IO_ERROR_NOT_SUPPORTED) ||
g_error_matches (error_local,
FWUPD_ERROR,
FWUPD_ERROR_NOT_FOUND)) {
g_debug ("%s", error_local->message);
return TRUE;
}