mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-02 20:16:45 +00:00
trivial: uefi-recovery: only run the plugin if efivar is available
This will cause it to disable on systems that are definitely not relevant.
This commit is contained in:
parent
7258f972ac
commit
ab65ea5db7
@ -17,6 +17,15 @@ fu_plugin_init(FuPlugin *plugin)
|
||||
fu_plugin_add_flag(plugin, FWUPD_PLUGIN_FLAG_REQUIRE_HWID);
|
||||
}
|
||||
|
||||
gboolean
|
||||
fu_plugin_startup(FuPlugin *plugin, GError **error)
|
||||
{
|
||||
/* are the EFI dirs set up so we can update each device */
|
||||
if (!fu_efivar_supported(error))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
fu_plugin_coldplug(FuPlugin *plugin, GError **error)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user