Don't call efibootmgr after fwupdate.

fwupdate will handle creating the appropriate BootNext entry.
No other changes are needed from fwupd.

Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
Mario Limonciello 2015-07-15 16:21:13 -05:00 committed by Richard Hughes
parent c7cf166a2f
commit 28b8151ca0
2 changed files with 0 additions and 26 deletions

View File

@ -33,7 +33,6 @@ BuildRequires: libappstream-glib-devel
# we'll fix this when Peter has the latest code in a Fedora package
# BuildRequires: fwupdate-devel >= 0.1
# Requires: efibootmgr
%description
fwupd is a daemon to allow session software to update device firmware.

View File

@ -213,7 +213,6 @@ fu_provider_uefi_update (FuProvider *provider,
fwup_resource_iter *iter = NULL;
fwup_resource *re = NULL;
gboolean ret = TRUE;
gint rc = 0;
guint64 hardware_instance = 0; /* FIXME */
_cleanup_error_free_ GError *error_local = NULL;
_cleanup_free_ gchar *standard_error = NULL;
@ -238,30 +237,6 @@ fu_provider_uefi_update (FuProvider *provider,
fwup_strerror (fwup_error));
goto out;
}
/* schedule our next boot to be the fwupdate */
if (!g_spawn_command_line_sync ("/usr/sbin/efibootmgr -n 1337",
NULL,
&standard_error,
&rc,
&error_local)) {
ret = FALSE;
g_set_error (error,
FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED,
"Failed to launch efibootmgr: %s",
error_local->message);
goto out;
}
if (!g_spawn_check_exit_status (rc, &error_local)) {
ret = FALSE;
g_set_error (error,
FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED,
"UEFI firmware update failed: %s",
error_local->message);
goto out;
}
out:
fwup_resource_iter_destroy (&iter);
return ret;