From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f1CPR-0000DJ-FB for mharc-grub-devel@gnu.org; Wed, 28 Mar 2018 10:50:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1CPO-0000C3-Kb for grub-devel@gnu.org; Wed, 28 Mar 2018 10:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1CPK-0007dB-Ix for grub-devel@gnu.org; Wed, 28 Mar 2018 10:50:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57886 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f1CPK-0007cr-5P for grub-devel@gnu.org; Wed, 28 Mar 2018 10:50:34 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2A29CF10DF; Wed, 28 Mar 2018 14:50:29 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-117-140.ams2.redhat.com [10.36.117.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id A63C82026DFD; Wed, 28 Mar 2018 14:50:28 +0000 (UTC) From: Hans de Goede To: grub-devel@gnu.org Cc: Daniel Kiper Subject: [PATCH 0/4] Make hidden menu really hidden Date: Wed, 28 Mar 2018 16:50:24 +0200 Message-Id: <20180328145028.21555-1-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 28 Mar 2018 14:50:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 28 Mar 2018 14:50:29 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'hdegoede@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 14:50:39 -0000 Hi All, Let me start with a quick self-intro: I'm a FOSS enthusiast / developer working for Red Hat, my latest project at Red Hat is chasing what has over the years become the magical unicorn of desktop Linux distros: a smooth graphical boot where the machine goes from the BIOS screen to the graphical login manager in one smooth flow, without any (80x25) text mode messages or black-screens in between. These 4 patches modify grub so that when timeout_style=hidden is used, and the user does not press a key to show the menu the EFI display is never switched to text mode and the vendor logo stays in place on the monitor. The first patch adds a new "version" command, this is not really related to the other 3 patches, but when I started working on grub I wanted to verify I was running my own build and I was surprised there was no such command, so I added one. The second patch is also only somewhat related, if the menu-timeout is short, one way to still make sure you get the grub menu is to start pressing the ESC key before grub is loaded, but on some systems ESC is the hotkey to enter the firmware setup, so this commit also adds support for pressing F8 to ge the menu. F8 is used by the Windows boot menu, so almost all x86 firmwares don't use this key for their own purposes. This will also make it easier for users coming from Windows to get the menu (if they know that F8 is used for the boot menu Windows). The third patch makes changes which a lot of distros have been carrying as distro patches since 2013 at least, these changes make grub be quiet during boot, except for the menu. These changes were not universally liked in the past, because they may make debugging boot problems harder in some cases, so they have never been merged. This version of these changes makes the quiet behavior configurable through a ./configure option which defaults to the old verbose behavior, which should hopefully make everyone happy. This patch is a mix of Fedora and Ubuntu patches for this, picking the best of both. The fourth patch modifies the EFI terminal code to not switch the EFI display to textmode until the first text is output. Note that for this patch to actually make a difference, no text must be output, so we need the "quiet" patch to be enabled and timeout_style=hidden. If any error (or other output happens) grub will immediately switch to text mode and show the message to the user. Regards, Hans