mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 15:55:45 +00:00
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:
parent
c7cf166a2f
commit
28b8151ca0
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user