bios: Only warn about CSM when using i?86 or x86_64

We're telling people on PPC64 to switch to UEFI mode...
This commit is contained in:
Richard Hughes 2020-09-17 16:55:53 +01:00
parent 6da96cd04a
commit 0d37a9a93a

View File

@ -73,15 +73,17 @@ gboolean
fu_plugin_coldplug (FuPlugin *plugin, GError **error)
{
g_autofree gchar *sysfsfwdir = NULL;
g_autoptr(GError) error_local = NULL;
g_autofree gchar *esrt_path = NULL;
/* are the EFI dirs set up so we can update each device */
#if defined(__x86_64__) || defined(__i386__)
g_autoptr(GError) error_local = NULL;
if (!fu_efivar_supported (&error_local)) {
const gchar *reason = "Firmware can not be updated in legacy BIOS mode, switch to UEFI mode";
g_warning ("%s", error_local->message);
return fu_plugin_bios_create_dummy (plugin, reason, error);
}
#endif
/* get the directory of ESRT entries */
sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);