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:
Mario Limonciello 2021-09-16 00:55:28 -05:00
parent 7258f972ac
commit ab65ea5db7

View File

@ -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)
{