From: Kay Sievers Date: Wed, 6 Mar 2013 19:31:10 +0000 (+0100) Subject: if no entries are found, select the first one not the last one of the auto-* entries X-Git-Tag: 25~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3a967161952c128c58aefbb16c7abd79a14874a;p=platform%2Fupstream%2Fgummiboot.git if no entries are found, select the first one not the last one of the auto-* entries --- 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 */