fwupd/plugins/uefi/fu-uefi-bootmgr.h
Hsieh-Tseng Shen b47eee9a8a uefi: a new option for uefi configuration to use UEFI removable path
Per discussion of #2513, Ubuntu Core was going to use UEFI removable
path as default esp path, and it needs to change some parts around
getting the esp path and searching the shim app path. Also, a new option
"FallbacktoRemovablePath" is added into uefi.conf to be applied in this
case, and it will be false by default.
2020-11-11 13:04:46 -06:00

27 lines
619 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>
#include "fu-device.h"
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 (FuDevice *device,
const gchar *esp_path,
const gchar *description,
FuUefiBootmgrFlags flags,
GError **error);