mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 21:14:35 +00:00
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:
parent
6da96cd04a
commit
0d37a9a93a
@ -73,15 +73,17 @@ gboolean
|
|||||||
fu_plugin_coldplug (FuPlugin *plugin, GError **error)
|
fu_plugin_coldplug (FuPlugin *plugin, GError **error)
|
||||||
{
|
{
|
||||||
g_autofree gchar *sysfsfwdir = NULL;
|
g_autofree gchar *sysfsfwdir = NULL;
|
||||||
g_autoptr(GError) error_local = NULL;
|
|
||||||
g_autofree gchar *esrt_path = NULL;
|
g_autofree gchar *esrt_path = NULL;
|
||||||
|
|
||||||
/* are the EFI dirs set up so we can update each device */
|
/* 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)) {
|
if (!fu_efivar_supported (&error_local)) {
|
||||||
const gchar *reason = "Firmware can not be updated in legacy BIOS mode, switch to UEFI mode";
|
const gchar *reason = "Firmware can not be updated in legacy BIOS mode, switch to UEFI mode";
|
||||||
g_warning ("%s", error_local->message);
|
g_warning ("%s", error_local->message);
|
||||||
return fu_plugin_bios_create_dummy (plugin, reason, error);
|
return fu_plugin_bios_create_dummy (plugin, reason, error);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* get the directory of ESRT entries */
|
/* get the directory of ESRT entries */
|
||||||
sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);
|
sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);
|
||||||
|
Loading…
Reference in New Issue
Block a user