Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nDOZ4-0002f2-Te for mharc-grub-devel@gnu.org; Fri, 28 Jan 2022 05:33:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDOYz-0002as-Qr for grub-devel@gnu.org; Fri, 28 Jan 2022 05:33:06 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDOYu-0000Vb-G2 for grub-devel@gnu.org; Fri, 28 Jan 2022 05:33:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643365955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y+oykj2jLULj/AZ2W4dfh2nJMbGX8zynL7BLqhQIM/s=; b=OPcVvq7Xeba/zQ5QslUux/8t3vvsoqaO6IEma8T1TIXGdDAnWpW38op+rBC2bQpd/RiP0p zJGvT4Z53gZlHQGF8KNiBUJnHrSnO8MNztOwGVWyVOiy3ieQmfhfD70U0qt2tbIzdm/Naq mYKMXktH7cXJIfCyKovDxGUmnaqeizk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-204-VadWYO9FOx6TUsGOkqT-sA-1; Fri, 28 Jan 2022 05:30:41 -0500 X-MC-Unique: VadWYO9FOx6TUsGOkqT-sA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 708E883DD20 for ; Fri, 28 Jan 2022 10:30:40 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.193.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B8D066E17; Fri, 28 Jan 2022 10:30:39 +0000 (UTC) From: Hans de Goede To: grub-devel@gnu.org Cc: Robbie Harwood , 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 Message-Id: <20220128103033.74343-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hdegoede@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Received-SPF: pass client-ip=170.10.133.124; envelope-from=hdegoede@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.167, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2022 10:33:07 -0000 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