From nobody Tue Apr 23 18:00:03 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org ARC-Seal: i=1; a=rsa-sha256; t=1584351183; cv=none; d=zohomail.com; s=zohoarc; b=M+36MRsmkBiCmaE6FtIKtlPrC/kmKAUOVMsVsXrFh/ClyHWPXVDUzFhb3qOp1kFkt/oWfayoFwnXOAFcsfpnv1RdjLMUJ115lQZSO38M9nho1laG+3q+jONZ83lrjfVK+7GbWzkipsPsZXCbeKEv7A7HkPM9KOP6FwaeaqwqGa8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584351183; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=RDdU/9/MvMJOVcPl3ge9FUYwFDo+y6nAng3gq26sBQk=; b=dZKw4TV8qOVQxYl/in9iGy1J25m7gFMFma1iFzh8fDi17mBiek53nqc01JKYZGvxMK9T9o6MIrWhulwIZtH13dXE54UAypbE2kB3wliy0qX2H96iAFiEPs60q3IAy/exyaszRHNVHfiTVudw2cbmbqOr39xYsBJNX6xDwwJHcyE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1584351182649207.85963855432726; Mon, 16 Mar 2020 02:33:02 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 91FC2B01A3C; Mon, 16 Mar 2020 09:32:58 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 643C6B01A3C for ; Mon, 16 Mar 2020 09:32:42 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id BB20720646087; Mon, 16 Mar 2020 10:32:41 +0100 (CET) To: seabios@seabios.org From: Paul Menzel Message-ID: <45aa3ebe-b97c-f1af-2901-ec4e9bcd1084@molgen.mpg.de> Date: Mon, 16 Mar 2020 10:32:41 +0100 MIME-Version: 1.0 Content-Language: en-US Message-ID-Hash: CH4H65XYA3QLQEAMNPMYEVQZSUYTFXCQ X-Message-ID-Hash: CH4H65XYA3QLQEAMNPMYEVQZSUYTFXCQ X-MailFrom: pmenzel@molgen.mpg.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.3.1 Precedence: list Subject: [SeaBIOS] [PATCH] Skip boot menu and timeout with only one boot device List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: +++ X-Spam-Level: *** Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org Content-Type: text/plain; charset="utf-8"; format="flowed" From: Matt DeVillier Date: Fri, 13 Jun 2014 17:20:23 -0500 Signed-off-by: Matt DeVillier Signed-off-by: Paul Menzel --- Upstream from https://github.com/MrChromebox/SeaBIOS/ src/boot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/boot.c b/src/boot.c index afeb36a..ace3fa5 100644 --- a/src/boot.c +++ b/src/boot.c @@ -670,6 +670,12 @@ interactive_bootmenu(void) if (! CONFIG_BOOTMENU || !romfile_loadint("etc/show-boot-menu", 1)) return; + // skip menu if only one boot device and no TPM + if ((NULL =3D=3D BootList.first->next) && !tpm_can_show_menu()) { + printf("\n"); + return; + } + while (get_keystroke(0) >=3D 0) ; --=20 2.25.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org