mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-18 00:31:54 +00:00

Some system firmware helpfully 'deduplicate' the boot loader entries based on the filepath, without taking into account either the label or optional data. This means we have to use a custom copy of shim for firmware updates.
28 lines
596 B
C
28 lines
596 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+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#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_USE_SHIM_UNIQUE = 1 << 1,
|
|
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
|