Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f494n-0000cq-Hw for mharc-grub-devel@gnu.org; Thu, 05 Apr 2018 13:53:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f494l-0000b3-Hn for grub-devel@gnu.org; Thu, 05 Apr 2018 13:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f494h-0002m9-Kv for grub-devel@gnu.org; Thu, 05 Apr 2018 13:53:31 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f494h-0002lQ-C6 for grub-devel@gnu.org; Thu, 05 Apr 2018 13:53:27 -0400 Received: by mail-wm0-f66.google.com with SMTP id r191so7826282wmg.4 for ; Thu, 05 Apr 2018 10:53:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=G5eKA6BA29e3QU5+SuTTBo1a9/7R2se6tvxQnwcssmA=; b=h26tpV16HVwIlOHhzLZ5aQ7blSlB0PVSjeNTOQ6Ap9SboGjVsZkYwcxFkCIUpitWGn BpHTsctr7oVXDeG5+xJePURbzbbZGG91gdARBHSSnegEmqHdSrb24cW6NH34CUZH7TMq qdZZxK7i/DHJBIfbauDhmy+VrWoD0/AlLl123mfH/jvPZZLzE9x6+IfD/G49IevOiwWY vXufd1psBHO47k8jgx45SD5vylG3x3tQoQdHjBW2v4ORDNcxmiaQ2JI3Sa5rE9mbPyLm 8TkVYSVtytGwYTPZt1kmG9H3a+Lw95vBgcsxl3VcjByai+3TFox4ts9gErqRcjhz0QeP nglA== X-Gm-Message-State: ALQs6tAH3Ul93PhtZUGNpxZc+/9M+Ru1o2lzfmhQ8H5+6je3qcGW0kbR +jkTtLB4uTcJwiv3O3+cmcBNGw== X-Google-Smtp-Source: AIpwx48UJZsCdKjoy3ptVrBLBU+qYovGkbFGowWQt9bA2xpD8LAw47y2V10xbW7KzZPFuKmHfP+aUw== X-Received: by 10.80.145.219 with SMTP id h27mr3903207eda.3.1522950805254; Thu, 05 Apr 2018 10:53:25 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id d22sm5414067eda.31.2018.04.05.10.53.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 10:53:24 -0700 (PDT) Subject: Re: [PATCH 3/4] Optionally print less messages at boot To: Daniel Kiper Cc: grub-devel@gnu.org, Colin Watson References: <20180328145028.21555-1-hdegoede@redhat.com> <20180328145028.21555-4-hdegoede@redhat.com> <20180405121257.GT26100@olila.local.net-space.pl> From: Hans de Goede Message-ID: Date: Thu, 5 Apr 2018 19:53:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180405121257.GT26100@olila.local.net-space.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.66 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: Thu, 05 Apr 2018 17:53:32 -0000 Hi, On 05-04-18 14:12, Daniel Kiper wrote: > On Wed, Mar 28, 2018 at 04:50:27PM +0200, Hans de Goede wrote: >> The patch optionally makes grub not show any text (be fully quiet) when >> timeout_style=hidden is set and the user does not interrupt the boot. >> >> Combined with a later patch in this series which makes grub not touch >> the EFI console unless it actually has some text to print, this will keep >> the vendor logo which EFI put on the display in place until the kernel >> touches the display. Leading to a more smooth / seamless boot experience. >> >> At least Fedora/RHEL/CentOS and Ubuntu have been carrying patches for this >> for a long time now (since 2013). There have been several attempts to >> upstream these patches in the past already, which have been rejected >> because not everyone likes the quiet behavior. > > May I ask you to provide links to the relevant conversations? Sure you may ask, but I cannot really help with that because I was not involved in grub development back then. I've done a quick search of the mailinglist archives, but I'm afraid I could not find anything that way. >> This patch makes the quiet behavior optional and defaults to off, so >> unless grub is compiled with the new --enable-quiet-boot configure option >> this patch changes nothing. > > I am not sure why this should be build time option. I would see this as > a runtime option, e.g. boot_quiet shell variable or even timeout_style=quiet. > Hmmm... Latter is probably preferred. The problem is that grub already prints various things before reading its environment or config file. What I've understood from the history of this patches, removing those earlier prints (see e.g. the grub-core/boot/i386/pc/boot.S change in this patch) was objected against because that provides info that at least the first stage (for a classic PC BIOS boot setup) has successfully loaded. The menu code itself is already quiet when using timeout_style=hidden, the problem is the messages printed before (and after) the menu code. If you're happy with killing the messages shown before the config file is loaded (as most distros already do), then the rest could be made runtime configurable. Regards, Hans