Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1odmiq-0002YF-S2 for mharc-grub-devel@gnu.org; Thu, 29 Sep 2022 02:08:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmiU-0002Sa-EK for grub-devel@gnu.org; Thu, 29 Sep 2022 02:08:16 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:43635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odmiS-0002W1-6h for grub-devel@gnu.org; Thu, 29 Sep 2022 02:08:13 -0400 Received: by mail-wm1-x333.google.com with SMTP id r3-20020a05600c35c300b003b4b5f6c6bdso198194wmq.2 for ; Wed, 28 Sep 2022 23:08:11 -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 :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date; bh=81MnRfkT0bHVpNX0JPhC6c+BYZYKdtgsScinKTL6dFo=; b=G2D9d+irKT+O15YdWivnfImzOUDR8Bqy9fK1SzBnzcHpTSDdROGN6kulGM4KPjB0Gz aNe1h7PYS0rNSiWbwMopeHbaqGvv1g0RN/94WCccZYkd1b/jHpTCbkzvTxKa3sL8mOLa IzwxCuV0jQIEDuHlV+uP6A1yzgPDhFueSu7NTgOCQyjeieiSlfGHLuGma2ChJyIYdx7N yA8XXhy6hor4HT4juvuOPTjeX+cKYUX05o91ofJwB/w4fYBfYAn5DEDzyvhzudAT31MD LZcb2TdbTngU/izvXV5S+hcDZ7uw5/bi6PtsObw/62QBxKdH90q79b/mEC38eV4tgWLD ulZA== 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 :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=81MnRfkT0bHVpNX0JPhC6c+BYZYKdtgsScinKTL6dFo=; b=u1JnZ5MV/3bUfv2P1w8jJW8qLEtnS8/uGpAeddfzggXr+m1tG1Nbcma+EH5EECqr22 J8QvaJ8YFh5VprE5lxIMNnOgO+2lGe7CuwoPIES6x0XysgNC+S9d+r9Sbc2z8f4I+pg+ oq3pmCL723edtpXJh1QjaZVpXdsImhHxPxIQ1minFB2i8HIwIULci26rkqNfM7LqEHy8 JATdWEFgekc06D46vn8eABRPfbUAvn7yUrwk2+uiJ8/qJv+sQEKn85mgf91/06CTJ+/v rAVMQc/E1qQsyC8ejQMI3f8Sd66IuPhMJ3RQyFXXOPwMDoz4PzV3/xllYY8I5f4Q0whI uSfQ== X-Gm-Message-State: ACrzQf061OvfZsQzMynNgbXatAXDr+m6zftmHVkBrAMvqKZy402J2teD 5+c93VjMSivJ1q4FUyDC3TUqj3Q+vGw= X-Google-Smtp-Source: AMsMyM7Aq/uvQOdYyf7fJrzvqsVS381v7f1tJDq1w5mrWvKFXsvDxq8b15ydQndwkYwOJIrjpOP1Kg== X-Received: by 2002:a7b:c38e:0:b0:3b4:84ae:bc4a with SMTP id s14-20020a7bc38e000000b003b484aebc4amr954527wmj.97.1664431689678; Wed, 28 Sep 2022 23:08:09 -0700 (PDT) Received: from dj3ntoo (171.sub-72-110-15.myvzw.com. [72.110.15.171]) by smtp.gmail.com with ESMTPSA id y8-20020a5d4ac8000000b0022a403954c3sm5701626wrs.42.2022.09.28.23.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 23:08:08 -0700 (PDT) Date: Thu, 29 Sep 2022 01:08:03 -0500 From: Oskari Pirhonen To: The development of GNU GRUB Cc: Daniel Kiper , Denton Liu Subject: Re: [RESEND RESEND RESEND PATCH] templates: introduce GRUB_TOP_LEVEL_* vars Message-ID: Mail-Followup-To: The development of GNU GRUB , Daniel Kiper , Denton Liu References: <20220921112225.145616-1-liu.denton@gmail.com> <20220927123045.100271-1-liu.denton@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YYIVlwMgdFV6Kbm6" Content-Disposition: inline In-Reply-To: <20220927123045.100271-1-liu.denton@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=xxc3ncoredxx@gmail.com; helo=mail-wm1-x333.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: Thu, 29 Sep 2022 06:08:33 -0000 --YYIVlwMgdFV6Kbm6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2022 at 05:30:45 -0700, Denton Liu wrote: > A user may wish to use an image that is not sorted as the "latest" > version as the top-level entry. For example, in Arch Linux, if a user > has the LTS and regular kernels installed, `/boot/vmlinuz-linux-lts` > gets sorted as the "latest" compared to `/boot/vmlinuz-linux`. However, > a user may wish to use the regular kernel as the default with the LTS > only existing as a backup. >=20 > Introduce the GRUB_TOP_LEVEL_LINUX and GRUB_TOP_LEVEL_XEN variables to > allow users to specify the top-level entry. >=20 A couple questions: - If all you're looking for is /boot/vmlinuz-linux to be booted, is setting GRUB_DEFAULT in /etc/default/grub "good enough" for your use case? - Is it possible to make this solution more universal? Maybe BSD users would like to set their top level entry. - What about for os-prober? My understanding is that it creates its own top level entries as well. Note with the 1st question: I'm not saying GRUB_TOP_LEVEL_* is a bad idea. I'm just curious. - Oskari --YYIVlwMgdFV6Kbm6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQfOU+JeXjo4uxN6vCp8he9GGIfEQUCYzU2PgAKCRCp8he9GGIf EToGAQDxHDSnidt/iR391JQBoY+B0ypQklXFoF3fECEqYods3wEAm4GtXIRDyMl5 p+7+C3nHlS3cJx4uxll7Ldr1VbW8iQM= =JzzB -----END PGP SIGNATURE----- --YYIVlwMgdFV6Kbm6--