Add configure option to reduce visual clutter at boot time
authorJulian Andres Klode <julian.klode@canonical.com>
Tue, 25 Jul 2023 13:35:52 +0000 (15:35 +0200)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000 (17:42 +0200)
commit4629f272375b709bbf32e9ae36838625eabdcffb
tree04d3c017524b86d1c98f0c051546c6905e91b6bd
parent3bf09ff9f693fadb0ab51072c75d662e25732835
Add configure option to reduce visual clutter at boot time

If this option is enabled, then do all of the following:

Don't display introductory message about line editing unless we're
actually offering a shell prompt.  (This is believed to be a workaround
for a different bug.  We'll go with this for now, but will drop this in
favour of a better fix upstream if somebody figures out what that is.)

Don't clear the screen just before booting if we never drew the menu in
the first place.

Remove verbose messages printed before reading configuration.  In some
ways this is awkward because it makes debugging harder, but it's a
requirement for a smooth-looking boot process; we may be able to do
better in future.  Upstream doesn't want this, though.

Disable the cursor as well, for similar reasons of tidiness.

Suppress kernel/initrd progress messages, except in recovery mode.

Suppress "GRUB loading" message unless Shift is held down.  Upstream
doesn't want this, as it makes debugging harder.  Ubuntu wants it to
provide a cleaner boot experience.

Author: Will Thompson <will@willthompson.co.uk>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/386922
Bug-Ubuntu: https://bugs.launchpad.net/bugs/861048
Forwarded: (partial) http://lists.gnu.org/archive/html/grub-devel/2009-09/msg00056.html
Last-Update: 2021-09-24

Patch-Name: maybe-quiet.patch

Gbp-Pq: Name maybe-quiet.patch
config.h.in
configure.ac
grub-core/boot/i386/pc/boot.S
grub-core/boot/i386/pc/diskboot.S
grub-core/kern/main.c
grub-core/kern/rescue_reader.c
grub-core/normal/main.c
grub-core/normal/menu.c
util/grub.d/10_linux.in