forked from pool/efibootmgr
- Update to 0.12 * This release is mostly a maintenance release that uses libefivar's new library API for creating device paths and load options. * Also DHCPv4 network boot entries are now something you can create without knowing an awful lot about ACPI. - Refresh patches efibootmgr-0.11.0-derhat.diff as efibootmgr-derhat.diff efibootmgr-0.11.0-check-boot-order.diff as efibootmgr-check-boot-order.diff - Update project and download url OBS-URL: https://build.opensuse.org/request/show/311729 OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=30
19 lines
640 B
Diff
19 lines
640 B
Diff
---
|
|
src/efibootmgr/efibootmgr.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
Index: efibootmgr-0.12/src/efibootmgr/efibootmgr.c
|
|
===================================================================
|
|
--- efibootmgr-0.12.orig/src/efibootmgr/efibootmgr.c
|
|
+++ efibootmgr-0.12/src/efibootmgr/efibootmgr.c
|
|
@@ -451,6 +451,9 @@ remove_dupes_from_boot_order(void)
|
|
/* Adjust the size if we didn't copy everything. */
|
|
new_data_size = sizeof(new_data[0]) * new_i;
|
|
|
|
+ if (new_i == 0)
|
|
+ return efi_del_variable(EFI_GLOBAL_GUID, "BootOrder");
|
|
+
|
|
/* Now new_data has what we need */
|
|
free(boot_order->data);
|
|
boot_order->data = (uint8_t *)new_data;
|