mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* stage2/stage2.c (run_menu): Fix "savedefault" to save only top
level menu positions. Remember current position when calling a submenu. Don't recalculate it when booting from a submenu.
This commit is contained in:
1 parent
b8aa16f505
commit
7a1b51024a
2 files changed
+10
-2
No files matched your search
+6
-2
@@ -651,7 +651,10 @@ restart:
|
||||
*(new_heap++) = 0;
|
||||
|
||||
if (config_entries)
|
||||
run_menu (heap, NULL, new_num_entries, new_heap, 0);
|
||||
{
|
||||
current_entryno = first_entry + entryno;
|
||||
run_menu (heap, NULL, new_num_entries, new_heap, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
cls ();
|
||||
@@ -727,7 +730,8 @@ restart:
|
||||
cur_entry = get_entry (config_entries, first_entry + entryno, 1);
|
||||
|
||||
/* Set CURRENT_ENTRYNO for the command "savedefault". */
|
||||
current_entryno = first_entry + entryno;
|
||||
if (config_entries)
|
||||
current_entryno = first_entry + entryno;
|
||||
|
||||
if (run_script (cur_entry, heap))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user