projects
/
platform
/
upstream
/
gummiboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba399c
)
if no entries are found, select the first one not the last one of the auto-* entries
author
Kay Sievers
<kay@vrfy.org>
Wed, 6 Mar 2013 19:31:10 +0000
(20:31 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 6 Mar 2013 19:31:10 +0000
(20:31 +0100)
src/efi/gummiboot.c
patch
|
blob
|
history
diff --git
a/src/efi/gummiboot.c
b/src/efi/gummiboot.c
index
47b5362
..
6fc1026
100644
(file)
--- a/
src/efi/gummiboot.c
+++ b/
src/efi/gummiboot.c
@@
-1559,7
+1559,7
@@
static VOID config_default_entry_select(Config *config) {
}
}
- /* select the last entry */
+ /* select the last
suitable
entry */
i = config->entry_count;
while (i--) {
if (config->entries[i]->no_autoselect)
@@
-1567,8
+1567,6
@@
static VOID config_default_entry_select(Config *config) {
config->idx_default = i;
return;
}
-
- config->idx_default = config->entry_count-1;
}
/* generate a unique title, avoiding non-distinguishable menu entries */