uefi: Add 'autofs' to supported filesystems (Closes: #660)

systemd-automount will unmount the ESP when not in use for some
people.  This causes automatic ESP detection to fail.

In this case the ESP will need to be added to the conf file and
then this commit will let it keep working.
This commit is contained in:
Mario Limonciello 2018-08-15 11:10:12 -05:00 committed by Mario Limonciello
parent 7132122387
commit 25b49b6a6f

View File

@ -274,7 +274,7 @@ fu_uefi_read_file_as_uint64 (const gchar *path, const gchar *attr_name)
gboolean gboolean
fu_uefi_check_esp_path (const gchar *path, GError **error) fu_uefi_check_esp_path (const gchar *path, GError **error)
{ {
const gchar *fs_types[] = { "vfat", "ntfs", "exfat", NULL }; const gchar *fs_types[] = { "vfat", "ntfs", "exfat", "autofs", NULL };
g_autoptr(GUnixMountEntry) mount = g_unix_mount_at (path, NULL); g_autoptr(GUnixMountEntry) mount = g_unix_mount_at (path, NULL);
if (mount == NULL) { if (mount == NULL) {
g_set_error (error, g_set_error (error,