Dirk Mueller
7de38aff65
- Update version number to 0.11.0 - Rebase patches (efibootmgr-0.11.0-derhat.diff, efibootmgr-0.11.0-check-boot-order.diff) - Drop efibootmgr-0.6.0-set_boot_order.diff since the data size of the variable is handled properly now - Drop efibootmgr-0.6.0-fail-visibly.diff since err() and warn() are introduced to show more meaningful messages - Drop upstreamed patch (efibootmgr-0.6.0-gcc-Wall.diff, efibootmgr-0.6.0-write-unique-id-once.diff) OBS-URL: https://build.opensuse.org/request/show/258751 OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=21
17 lines
398 B
Diff
17 lines
398 B
Diff
---
|
|
src/efibootmgr/efibootmgr.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/src/efibootmgr/efibootmgr.c
|
|
+++ b/src/efibootmgr/efibootmgr.c
|
|
@@ -467,6 +467,9 @@ remove_from_boot_order(uint16_t num)
|
|
}
|
|
}
|
|
|
|
+ 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;
|