[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOU
From: |
Hans de Goede |
Subject: |
[PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOUT_STYLE_HIDDEN |
Date: |
Fri, 28 Jan 2022 11:30:31 +0100 |
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
- [PATCH 0/2] EFI/menu: Do not print messages when autobooting with TIMEOUT_STYLE_HIDDEN,
Hans de Goede <=