]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
normal/menu: Add Ctrl-L to refresh the menu
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Oct 2022 02:35:59 +0000 (13:35 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 11 Oct 2022 12:59:29 +0000 (14:59 +0200)
This is useful on cloud instances with remote serial ports as it can be
difficult to connect "fast enough" to get the initial menu display

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/normal/menu.c

index 211cddc01ca0670d332b1785e42fa1355a152919..0dbbdc374a47d71f6abacf236f798d9998e86014 100644 (file)
@@ -3222,6 +3222,9 @@ If you protect the menu interface with a password (@pxref{Security}),
 all you can do is choose an entry by pressing @key{RET}, or press
 @key{p} to enter the password.
 
+Pressing @key{Ctrl-l} will refresh the menu, which can be useful when
+connecting via serial after the menu has been drawn.
+
 
 @node Menu entry editor
 @section Editing a menu entry
index fa4871a621acb56184008474fc72546b45708afd..6a90e091f22367cd45d83fa748a1d45cf9e38ae6 100644 (file)
@@ -788,6 +788,10 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot, int *notify_boot)
                }
              goto refresh;
 
+           case GRUB_TERM_CTRL | 'l':
+             menu_fini ();
+             goto refresh;
+
            default:
              {
                int entry;