All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOUT_STYLE_HIDDEN
@ 2022-01-28 10:30 Hans de Goede
  2022-01-28 10:30 ` [PATCH 1/2] normal/menu: Don't show "Booting `%s'" msg when auto-booting " Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hans de Goede @ 2022-01-28 10:30 UTC (permalink / raw)
  To: grub-devel; +Cc: Robbie Harwood, Hans de Goede

Hi All,

This series in essence is a renewed attempt to get grub to really
be truly hidden when autobooting with TIMEOUT_STYLE_HIDDEN.

This is something which multiple big Linux distributions want,
this is a minimized version of my previous attempt from March 2018:
https://lists.gnu.org/archive/html/grub-devel/2018-03/msg00126.html
With some discussion about this patch in April 2018:
https://lists.gnu.org/archive/html/grub-devel/2018-04/msg00009.html

The first patch silences the notify_booting() callback from
grub-core/normal/menu.c based on the timeout_style (1), as
suggested in the original discussion.

After that there is just one message left, from grub-core/kern/main.c
which is printed before the config file loads. When timeout_style
is not set to hidden this will only show very briefly to then be
replaced by the menu / countdown; and with timeout_style=hidden
we actually want it to behave the same as any other grub messages
and have it hidden. The second patch makes this happen by just
disabling the logging of the message for EFI builds.

This also fixes the message briefly flashing by (in an ugly manner
because of the "flash" part) when timeout_style!=hidden.

Regards,

Hans


1) It is only silenced when autobooting with TIMEOUT_STYLE_HIDDEN


Hans de Goede (2):
  normal/menu: Don't show "Booting `%s'" msg when auto-booting with
    TIMEOUT_STYLE_HIDDEN
  EFI: suppress the "Welcome to GRUB!" message in EFI builds

 grub-core/kern/main.c   |  3 +++
 grub-core/normal/menu.c | 25 +++++++++++++++++--------
 2 files changed, 20 insertions(+), 8 deletions(-)

-- 
2.33.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-22 13:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-28 10:30 [PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOUT_STYLE_HIDDEN Hans de Goede
2022-01-28 10:30 ` [PATCH 1/2] normal/menu: Don't show "Booting `%s'" msg when auto-booting " Hans de Goede
2022-01-31 18:00   ` Robbie Harwood
2022-01-28 10:30 ` [PATCH 2/2] EFI: suppress the "Welcome to GRUB!" message in EFI builds Hans de Goede
2022-01-31 18:01   ` Robbie Harwood
2022-03-04 10:36 ` [PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOUT_STYLE_HIDDEN Hans de Goede
2022-03-22 13:46   ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.