fwupd/plugins/uefi/fu-uefi-udisks.h
Mario Limonciello 44b9e46d37 uefi: rework ESP path detection and lifecycle
This makes the daemon less destructive at startup, especially if the ESP
is not mounted.

It's stored in 3 different places right now, so move it into one point of truth.

Now the ESP is detected when needed including all point of time safety checks and
dynamically mounted and unmounted if necessary.
2019-10-24 15:22:01 -05:00

17 lines
545 B
C

/*
* Copyright (C) 2019 Mario Limonciello <mario.limonciello@dell.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
GPtrArray *fu_uefi_udisks_get_block_devices (GError **error);
gboolean fu_uefi_udisks_objpath (const gchar *path);
gboolean fu_uefi_udisks_objpath_is_esp (const gchar *obj);
gchar *fu_uefi_udisks_objpath_mount (const gchar *path,
GError **error);
gboolean fu_uefi_udisks_objpath_umount (const gchar *path,
GError **error);
gchar *fu_uefi_udisks_objpath_is_mounted (const gchar *path);