mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 16:11:22 +00:00
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:
parent
5206592347
commit
78987fb394
@ -475,7 +475,10 @@ fu_uefi_device_add_system_checksum (FuDevice *device, GError **error)
|
|||||||
if (!fu_uefi_pcrs_setup (pcrs, &error_local)) {
|
if (!fu_uefi_pcrs_setup (pcrs, &error_local)) {
|
||||||
if (g_error_matches (error_local,
|
if (g_error_matches (error_local,
|
||||||
G_IO_ERROR,
|
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);
|
g_debug ("%s", error_local->message);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user