From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ol15J-0003tQ-6p for mharc-grub-devel@gnu.org; Wed, 19 Oct 2022 00:53:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol15H-0003ru-II for grub-devel@gnu.org; Wed, 19 Oct 2022 00:53:39 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:40803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol15F-0002yv-V6 for grub-devel@gnu.org; Wed, 19 Oct 2022 00:53:39 -0400 Received: by mail-pl1-x635.google.com with SMTP id b2so15845800plc.7 for ; Tue, 18 Oct 2022 21:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZbUQNylXhVXKh1s0EJHctv8BE/4Z6ehnPchOqGRN3vo=; b=laO575w29tLUZcgzXGqTPpyRHGqXcNcV1nDeKkDbx0zZT+FOua+erEdbJggPJcMUBE VfwaE54TEHl/FwseLPL/Wg21zaq8ILuTskT1ZXOrUydwdKh8muuVqAyIfH5KzqdQUvSi 9zO3AVQ5MPaCk43ccL6XlM6fe87moJ3+RzCTAayEocd2PdBOWscwdxRUpMSuLswFrh/5 YPfOw4xCZ4wl2I/AtFvz1HR+dKV32SfSaE3O+ogGT86rQxiPWnYHyOuG9tCBqDlRREBD 9F7FRBtl7l3xtZru5/p13YOCPXOAPS1ZkKwhiLFWFOgqx5gBKrjCYsQsQwtmmUVauIH4 IQbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZbUQNylXhVXKh1s0EJHctv8BE/4Z6ehnPchOqGRN3vo=; b=qC8nc2iOEhxMfcD8q3jAChaxWZINFQcgAVH1d9OWfppnKM5aGw6lUALzUIAi8BHiS2 TB3VSjYFB+It2KnSCUykw+9FgbkbBet1Jvl+1ZBJTMEE9rmmwcUo5F9QopgrbwbR3n4d 7NEQcGJ8Ssax+UWQbVN9IwhHUaRHmazip34+tqJ2W7t/FmA8qTtRzHQ+t/2WvvRsn9hl BoIWHqf/+2BvkrT86+Lj5zs+UzhVtofEMzO3vJR7pvt02eaMVr5iGpbgYdlGb7h6EYkX wKkHpkJuWGvZOIfxmTAVnCZkZU3FmXPK4kNrnjlRjwtRSeNoSMB6x966uuHiNtNCoiup 3EJA== X-Gm-Message-State: ACrzQf0RZ+zc7UVONTV9gLWJCJpOranLs3KfrtWSlitF3tPzkvbeQv5e cF0LgKoM4m2yG45Fsfl/fgc= X-Google-Smtp-Source: AMsMyM5xG/9NQohjSp3JAsEV138F01V+6/sixxAwGiiyN6nAo2Sw/zQIyzJlQyQ9KBa33R7J9ImThQ== X-Received: by 2002:a17:902:d2cc:b0:182:d901:5d28 with SMTP id n12-20020a170902d2cc00b00182d9015d28mr6814310plc.142.1666155216361; Tue, 18 Oct 2022 21:53:36 -0700 (PDT) Received: from generichostname (136-25-1-99.cab.webpass.net. [136.25.1.99]) by smtp.gmail.com with ESMTPSA id d7-20020a170902654700b0017c3776634dsm9639571pln.32.2022.10.18.21.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 21:53:35 -0700 (PDT) Date: Tue, 18 Oct 2022 21:53:32 -0700 From: Denton Liu To: Olaf Hering Cc: grub-devel@gnu.org, Daniel Kiper , Oskari Pirhonen , mathieu.desnoyers@efficios.com, rharwood@redhat.com, samuel.thibault@ens-lyon.org, debian-bsd@lists.debian.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v4] templates: introduce GRUB_TOP_LEVEL_* vars Message-ID: References: <20221017103532.845293-1-liu.denton@gmail.com> <20221018131235.5e70f0bc.olaf@aepfle.de> <20221018161821.149ee6fd.olaf@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221018161821.149ee6fd.olaf@aepfle.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=liu.denton@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: Wed, 19 Oct 2022 04:53:39 -0000 Hi Olaf, On Tue, Oct 18, 2022 at 04:18:21PM +0200, Olaf Hering wrote: > I think this can be done already today. At least YaST offers a way to select a specific item in a submenu and pass it to grub-set-default. This leads to an entry like this in grubenv: Right, we currently offer the ability to navigate to a default _submenu_ but I think that it's bad UI to relegate the most oft-used entry to a submenu entry instead of the top-level entry. I would like to be able to specify the top-level entry, that is the first entry in the first menu. > Maybe the patch description lacks a specific example how the proposed change is supposed to be used in your environment. My patch description says: Introduce the GRUB_TOP_LEVEL, GRUB_TOP_LEVEL_XEN and GRUB_TOP_LEVEL_OS_PROBER variables to allow users to specify the top-level entry. and I'm not quite sure how to make it more clear other than, perhaps, explaining what the top-level entry means. -Denton