From a3a967161952c128c58aefbb16c7abd79a14874a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 6 Mar 2013 20:31:10 +0100 Subject: [PATCH] if no entries are found, select the first one not the last one of the auto-* entries --- src/efi/gummiboot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index 47b5362..6fc1026 100644 --- 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 */ -- 2.7.4