]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/main: Suppress the "Welcome to GRUB!" message in EFI builds
authorHans de Goede <hdegoede@redhat.com>
Fri, 28 Jan 2022 10:30:33 +0000 (11:30 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 4 Apr 2022 15:23:16 +0000 (17:23 +0200)
commit3e4cbbeca0ef35097301a1086f85fd0d119e64aa
treeec8bc2f79e6ed5d6d91d8cfc53d13d18c7c40589
parent5bb4f2b7d665c84bde402d1a528b652a61753380
kern/main: Suppress the "Welcome to GRUB!" message in EFI builds

GRUB EFI builds are now often used in combination with flicker-free
boot, but this breaks with upstream GRUB because the "Welcome to GRUB!"
message will kick the EFI fb into text mode and show the msg, breaking
the flicker-free experience.

EFI systems are so fast, that when the menu or the countdown are
enabled the message will be immediately overwritten, so in these cases
not printing the message does not matter.

And in case when the timeout_style is set to TIMEOUT_STYLE_HIDDEN,
the user has asked GRUB to be quiet (for example to allow flickfree
boot) and thus the message should not be printed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/main.c