mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 05:51:40 +00:00

Some hardware from Lenovo deduplicates UEFI Boot entries, and uses the old string 'Linux-Firmware-Updater' to avoid removing the firmware update entry. Although this is forbidden in the UEFI specification we shouldn't break firmware updates from old firmware versions. Provide a quirk for this, and automatically whitelist anything with the LENOVO SMBIOS Manufacturer.
30 lines
625 B
C
30 lines
625 B
C
/*
|
|
* Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
|
|
* Copyright (C) 2015-2017 Peter Jones <pjones@redhat.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#ifndef __FU_UEFI_BOOTMGR_H
|
|
#define __FU_UEFI_BOOTMGR_H
|
|
|
|
#include <glib.h>
|
|
#include <efivar.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef enum {
|
|
FU_UEFI_BOOTMGR_FLAG_NONE = 0,
|
|
FU_UEFI_BOOTMGR_FLAG_USE_SHIM_FOR_SB = 1 << 0,
|
|
FU_UEFI_BOOTMGR_FLAG_LAST
|
|
} FuUefiBootmgrFlags;
|
|
|
|
gboolean fu_uefi_bootmgr_bootnext (const gchar *esp_path,
|
|
const gchar *description,
|
|
FuUefiBootmgrFlags flags,
|
|
GError **error);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_UEFI_BOOTMGR_H */
|