mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-09 12:12:47 +00:00
Do not fail loading in /etc/machine-id is not available
In Chrome OS /etc/machine-id is not available on the sandbox environment. Chrome OS specifically rotate it constantly and is considered PII. Change-Id: Ia4113affa68c5973b36d196a35278a3f6cee2898 Signed-off-by: Daniel Campello <campello@chromium.org>
This commit is contained in:
parent
96117d19df
commit
b5ae60cc8b
@ -5243,6 +5243,9 @@ fu_engine_load (FuEngine *self, FuEngineLoadFlags flags, GError **error)
|
||||
FuRemoteListLoadFlags remote_list_flags = FU_REMOTE_LIST_LOAD_FLAG_NONE;
|
||||
FuQuirksLoadFlags quirks_flags = FU_QUIRKS_LOAD_FLAG_NONE;
|
||||
g_autoptr(GPtrArray) checksums = NULL;
|
||||
#ifndef _WIN32
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
#endif
|
||||
|
||||
g_return_val_if_fail (FU_IS_ENGINE (self), FALSE);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
@ -5254,9 +5257,9 @@ fu_engine_load (FuEngine *self, FuEngineLoadFlags flags, GError **error)
|
||||
/* TODO: Read registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography] "MachineGuid" */
|
||||
#ifndef _WIN32
|
||||
/* cache machine ID so we can use it from a sandboxed app */
|
||||
self->host_machine_id = fwupd_build_machine_id ("fwupd", error);
|
||||
self->host_machine_id = fwupd_build_machine_id ("fwupd", &error_local);
|
||||
if (self->host_machine_id == NULL)
|
||||
return FALSE;
|
||||
g_debug ("%s", error_local->message);
|
||||
#endif
|
||||
/* read config file */
|
||||
if (!fu_config_load (self->config, error)) {
|
||||
|
Loading…
Reference in New Issue
Block a user