<feed xmlns='http://www.w3.org/2005/Atom'>
<title>efi-boot-shim.git/fallback.c, branch Release_3.2.1</title>
<subtitle> (mirror of https://github.com/vyos/efi-boot-shim.git)
</subtitle>
<id>https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=Release_3.2.1</id>
<link rel='self' href='https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=Release_3.2.1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/'/>
<updated>2017-04-25T19:11:15+00:00</updated>
<entry>
<title>fallback: Avoid duplicates in BootOrder</title>
<updated>2017-04-25T19:11:15+00:00</updated>
<author>
<name>João Paulo Rechi Vita</name>
<email>jprvita@endlessm.com</email>
</author>
<published>2017-04-21T14:54:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=07bdd31f8352071ea6089225a8838a061e57af31'/>
<id>urn:sha1:07bdd31f8352071ea6089225a8838a061e57af31</id>
<content type='text'>
When fallback re-uses a duplicate entry, it is likely that it is already
listed in BootOrder. In this case the re-used entry should not be copied
from the old BootOrder, and the new BootOrder size needs to be adjusted
accordingly.

Signed-off-by: João Paulo Rechi Vita &lt;jprvita@endlessm.com&gt;

https://phabricator.endlessm.com/T16731
</content>
</entry>
<entry>
<title>fallback: Consider all Boot* vars when checking for duplicates</title>
<updated>2017-02-21T16:36:13+00:00</updated>
<author>
<name>João Paulo Rechi Vita</name>
<email>jprvita@endlessm.com</email>
</author>
<published>2017-02-13T19:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=b45652aba2d797b64516ba2867d756c39a6735d1'/>
<id>urn:sha1:b45652aba2d797b64516ba2867d756c39a6735d1</id>
<content type='text'>
Some firmware implementations like the one on the Acer TravelMate
P449-G2-MG completely ignore the contents of BootOrder on boot, and
overwrite it with a value of its own. On this particular machine, the
boot entry that was just created by fallback on the previous boot is not
included by the firmware on this new BootOrder, so it is not considered
when checking for duplicates.

This problem is agravated by the fact that the aformentioned firmware
does not give the user the possibility to boot from the entry created by
fallback (or any other entry created by the OS). The only way to boot
a distro that deploys the fallback setup (no grub inside \EFI\BOOT) with
this firmware is to select the entry pointing to \EFI\BOOT\bootx64.efi,
leading to a new boot entry being created by fallback on every boot.

This commit makes fallback try every Boot* variable when checking for
duplicates, working around this problem.

Signed-off-by: João Paulo Rechi Vita &lt;jprvita@endlessm.com&gt;

https://phabricator.endlessm.com/T15481
</content>
</entry>
<entry>
<title>fallback: replace any existing boot entry with the same name</title>
<updated>2017-01-05T18:45:59+00:00</updated>
<author>
<name>Daniel Drake</name>
<email>drake@endlessm.com</email>
</author>
<published>2017-01-05T18:45:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=fb08d687562b47899bd3333f40d25c3f92b479c3'/>
<id>urn:sha1:fb08d687562b47899bd3333f40d25c3f92b479c3</id>
<content type='text'>
Tweak the dupliate boot entry detection code to consider any existing
entries as duplicate if they have the same name (rather than requiring
the existing entry to be completely identical to the one we would add).

When a duplicate is detected, rewrite the whole variable (as the device
details might have changed) in addition to making it the new default
boot entry.

This means that when partition UUIDs are changed, or when doing a fresh
reflash, we will avoid creating duplicate entries with the same name.

https://phabricator.endlessm.com/T14430
</content>
</entry>
<entry>
<title>fallback: Reduce noise when BootOrder list is empty</title>
<updated>2016-09-26T08:32:21+00:00</updated>
<author>
<name>Carlo Caione</name>
<email>carlo@endlessm.com</email>
</author>
<published>2016-09-26T08:32:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=d1d1cf30b989d07fed3a9175ffa296f7df301967'/>
<id>urn:sha1:d1d1cf30b989d07fed3a9175ffa296f7df301967</id>
<content type='text'>
Signed-off-by: Carlo Caione &lt;carlo@endlessm.com&gt;
</content>
</entry>
<entry>
<title>Improve our debuginfo path print</title>
<updated>2015-06-30T18:19:57+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2015-06-30T17:24:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=70ce2c420484ef964b6443c102bfd78c29965e10'/>
<id>urn:sha1:70ce2c420484ef964b6443c102bfd78c29965e10</id>
<content type='text'>
Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Add a conditional point for a debugger to attach.</title>
<updated>2015-06-29T18:41:21+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2015-06-20T16:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=a0319607507d40f72322c2bdc5a6f8a322864552'/>
<id>urn:sha1:a0319607507d40f72322c2bdc5a6f8a322864552</id>
<content type='text'>
Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Fix length of allocated buffer for boot option comparison.</title>
<updated>2015-04-13T23:55:25+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2015-02-25T18:45:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=6b2510522f92026dc17e1c5508bbfab935741012'/>
<id>urn:sha1:6b2510522f92026dc17e1c5508bbfab935741012</id>
<content type='text'>
The following commit:

  commit 4aac8a1179e160397d7ef8f1e3232cfb4f3373d6
  Author: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
  Date:   Thu Mar 6 10:57:02 2014 +0800

    [fallback] Fix the data size for boot option comparison

corrected the data size used for comparison, but also reduced the
allocation so it doesn't include the trailing UTF16LE '\0\0' at the
end of the string, with the result that the trailer of the buffer
containing the string is overwritten, which OVMF detects as memory
corruption.

Increase the size of the storage buffer in a few places to correct
this problem.

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
Cc: Laszlo Ersek &lt;lersek@redhat.com&gt;
Cc: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>fallback: Fix comparison between signed and unsigned in debugging code.</title>
<updated>2015-04-13T23:55:25+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2015-02-25T18:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=90c65f72f882c2acd7f20cd59a5156aa63f7f425'/>
<id>urn:sha1:90c65f72f882c2acd7f20cd59a5156aa63f7f425</id>
<content type='text'>
fallback.c: In function ‘update_boot_order’:
fallback.c:334:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  for (j = 0 ; j &lt; size / sizeof (CHAR16); j++)
                   ^
fallback.c: In function ‘add_to_boot_list’:
fallback.c:402:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  for (i = 0; i &lt; s; i++) {
                  ^

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Try to boot the first boot option anyway</title>
<updated>2014-05-13T17:30:07+00:00</updated>
<author>
<name>Gary Ching-Pang Lin</name>
<email>glin@suse.com</email>
</author>
<published>2014-03-05T10:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=0ba09477afac58ef2eadc7311440e695e6250029'/>
<id>urn:sha1:0ba09477afac58ef2eadc7311440e695e6250029</id>
<content type='text'>
Some UEFI implementations never care the boot options, so the
restored boot options could be just ignored and this results in
endless reboot. To avoid this situation, this commit makes
fallback.efi to load the first matched boot option even if there
is no boot option to be restored. It may not be perfect, but at
least the bootloader is loaded...

Signed-off-by: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Fix the data size for boot option comparison</title>
<updated>2014-05-13T17:24:12+00:00</updated>
<author>
<name>Gary Ching-Pang Lin</name>
<email>glin@suse.com</email>
</author>
<published>2014-03-06T02:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=4aac8a1179e160397d7ef8f1e3232cfb4f3373d6'/>
<id>urn:sha1:4aac8a1179e160397d7ef8f1e3232cfb4f3373d6</id>
<content type='text'>
Signed-off-by: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
</feed>
