Accepting request 240152 from home:gary_lin:branches:Base:System
- delete BootOrder if there is no more boot option. [bnc#883545] OBS-URL: https://build.opensuse.org/request/show/240152 OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=17
This commit is contained in:
parent
e9607c39f5
commit
49483d5cd8
14
efibootmgr-0.6.0-check-boot-order.diff
Normal file
14
efibootmgr-0.6.0-check-boot-order.diff
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
|
||||||
|
index 7ea1887..b01a05a 100644
|
||||||
|
--- a/src/efibootmgr/efibootmgr.c
|
||||||
|
+++ b/src/efibootmgr/efibootmgr.c
|
||||||
|
@@ -380,6 +380,9 @@ remove_from_boot_order(uint16_t num)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (new_i == 0)
|
||||||
|
+ return delete_variable(&boot_order);
|
||||||
|
+
|
||||||
|
/* Now new_data has what we need */
|
||||||
|
new_data_size = new_i * sizeof(uint16_t);
|
||||||
|
memset(&(boot_order.Data), 0, boot_order.DataSize);
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 7 10:45:04 UTC 2014 - glin@suse.com
|
||||||
|
|
||||||
|
- Add efibootmgr-0.6.0-check-boot-order.diff to delete BootOrder
|
||||||
|
if there is no more boot option. [bnc#883545]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 19 15:59:44 UTC 2013 - rw@suse.com
|
Thu Dec 19 15:59:44 UTC 2013 - rw@suse.com
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ Patch1: %{name}-0.6.0-derhat.diff
|
|||||||
Patch2: %{name}-0.6.0-set_boot_order.diff
|
Patch2: %{name}-0.6.0-set_boot_order.diff
|
||||||
Patch3: %{name}-0.6.0-fail-visibly.diff
|
Patch3: %{name}-0.6.0-fail-visibly.diff
|
||||||
Patch4: %{name}-0.6.0-write-unique-id-once.diff
|
Patch4: %{name}-0.6.0-write-unique-id-once.diff
|
||||||
|
Patch5: %{name}-0.6.0-check-boot-order.diff
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: pciutils-devel
|
BuildRequires: pciutils-devel
|
||||||
@ -48,6 +49,7 @@ information about the EFI can be found at
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
LOADER="grub.efi" # default loader
|
LOADER="grub.efi" # default loader
|
||||||
|
Loading…
x
Reference in New Issue
Block a user