From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-196271-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 016861382C5
	for <garchives@archives.gentoo.org>; Sun, 13 Jun 2021 18:46:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 44664E0CBB;
	Sun, 13 Jun 2021 18:46:42 +0000 (UTC)
Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.75])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C4835E0CB4
	for <gentoo-user@lists.gentoo.org>; Sun, 13 Jun 2021 18:46:41 +0000 (UTC)
Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66])
	by mail-gw.thundermail.uk (Postfix) with ESMTPS id 3CDBD60000B3
	for <gentoo-user@lists.gentoo.org>; Sun, 13 Jun 2021 19:46:40 +0100 (BST)
X-ASG-Debug-ID: 1623609999-055413145b159040001-LfjuLa
Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183]) by mailgw01.thundermail.uk with ESMTP id wEfgNZgotx1bRThu (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for <gentoo-user@lists.gentoo.org>; Sun, 13 Jun 2021 19:46:39 +0100 (BST)
X-Barracuda-Envelope-From: confabulate@kintzios.com
X-Barracuda-Effective-Source-IP: cloud220.unlimitedwebhosting.co.uk[149.255.60.183]
X-Barracuda-Apparent-Source-IP: 149.255.60.183
Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230])
	by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id 0078EC8D826
	for <gentoo-user@lists.gentoo.org>; Sun, 13 Jun 2021 19:46:37 +0100 (BST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com;
	s=default; t=1623609998;
	bh=q9NfpngwStqbUMS69wI84gupYwjcmtSeVmsPZKR/d7I=; h=From:To:Subject;
	b=d9qQwDNyf7Gbg1bV3tb/EqcpSLSzQ106e5w71FcJ2A7qTDizWj0Rxz3KSc9J8BXc9
	 SQc8I61fpQVL8hoTWCGaP+twoObMSpPKmngS2goTaryqE2V7mSCcj+BrmLVoyAe5Ru
	 E18Pghdqp3uLT1qIoauPTax1NgsjrVo23M8eEpcM=
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Exact setting in grub to default to a kernel by
 name?
Date: Sun, 13 Jun 2021 19:45:50 +0100
X-ASG-Orig-Subj: Re: [gentoo-user] Exact setting in grub to default to a kernel by
 name?
Message-ID: <12790259.uLZWGnKmhe@lenovo.localdomain>
In-Reply-To: <20210613190529.732bcd1d@digimed.co.uk>
References: <YMWEfxVYBKNmWjs/@waltdnes.org> <YMYJRcj/Zl40R3g8@waltdnes.org>
 <20210613190529.732bcd1d@digimed.co.uk>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2781330.e9J7NaK4W3";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-PPP-Message-ID: <20210613184638.3600878.20294@cloud220.unlimitedwebhosting.co.uk>
X-PPP-Vhost: kintzios.com
X-Barracuda-Connect: cloud220.unlimitedwebhosting.co.uk[149.255.60.183]
X-Barracuda-Start-Time: 1623609999
X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256
X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi
X-ASG-Orig-Subj: Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
X-Virus-Scanned: by bsmtpd at thundermail.uk
X-Barracuda-Scan-Msg-Size: 2513
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.90621
	Rule breakdown below
	 pts rule name              description
	---- ---------------------- --------------------------------------------------
X-Archives-Salt: b185bc08-02b7-4a2b-a57b-0bb3558bf239
X-Archives-Hash: 774087110947b2d02051b4ad9076ab6d

--nextPart2781330.e9J7NaK4W3
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="UTF-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
Date: Sun, 13 Jun 2021 19:45:50 +0100
Message-ID: <12790259.uLZWGnKmhe@lenovo.localdomain>
In-Reply-To: <20210613190529.732bcd1d@digimed.co.uk>
References: <YMWEfxVYBKNmWjs/@waltdnes.org> <YMYJRcj/Zl40R3g8@waltdnes.org> <20210613190529.732bcd1d@digimed.co.uk>

On Sunday, 13 June 2021 19:05:29 BST Neil Bothwick wrote:
> On Sun, 13 Jun 2021 09:33:57 -0400, Walter Dnes wrote:
> > On Sun, Jun 13, 2021 at 06:46:15AM +0200, Hund wrote
> > 
> > > >Let me rephrase the question more generally... given a
> > > >kernel "/boot/vmlinuz-fubar" how and where do I specify it by name as
> > > >the default boot kernel?
> > > 
> > > What about this?
> > > 
> > > https://www.stephenrlang.com/2017/06/setting-default-kernel-in-grub2/
> > > 
> >   Is /boot/grub/grub.cfg the file that actually controls bootup, and is
> > 
> > all 154 lines of verbosity really necessary?  For menu entries I see...
> 
> Not necessary, but does no harm either. The first 90% of the file is
> automated setup, which you can replace with hard coded entries or just
> leave it to its own devices. The only part you need to think about is the
> menuentry sections.
> 
> >   I'd be tempted to do a manual gub.cfg if I had documentation.
> 
> GRUB has extensive documentation. it's not the best written but every
> configuration option is described.
> 
> Isn't this a new laptop? If so, why torment yourself with GRUB when you
> have UEFI available to you? The only real justification for using GRUB in
> such a situation is that you are completely familiar with it and don't
> want to learn something else. But if you have to learn something, you may
> as well learn the 2/3 line configs of systemd-boot.
> 
> Note that systemd-boot doesn't require systemd, it's just the gummiboot
> boot manager that was merged into systemd taken out again. Or you could
> use rEFInd if you prefer a prettier boot menu.

I do like rEFInd, feels AppleMac-like.  :-)

However, I have abandoned all boot managers these days on UEFI MoBos and just 
use the native UEFI firmware to boot with.[1]  It's simpler, lighter and 
faster.  However, I don't boot into different OS/kernels unless I have to and 
when I do I have to use the UEFI menu GUI to switch OS/kernels, so this won't 
suit all use cases.

This approach requires to enable the 'EFI boot stub' option in the kernel, so 
that the UEFI firmware can recognise and load the kernel directly as an EFI 
executable.[2]  Then it is a matter of using the efibootmgr on the CLI to set 
up my boot menu labels and OS/kernel order.[3] 

[1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
Bootloader#Alternative_2:_efibootmgr
[2] https://wiki.gentoo.org/wiki/EFI_Stub
[3] https://wiki.gentoo.org/wiki/Efibootmgr
--nextPart2781330.e9J7NaK4W3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmDGUl4ACgkQseqq9sKV
Zxn/ahAAiOtJ+lQt4Nh2pi/xrm/Ir34c3nqYrsBN91wXQ5g0s4e2KgYspYZpfhDA
OxnoKcmrni4j1unuaNsQCpENCSoYfQ4XXluYhmhbH4+CqqGEvjU1Hs9RrCId6dqT
Ko4KttxEZ+MCFMZwhaQJIyEOIIbyvTCcchkfO7nU321ToQa4gSDyRjkB2F0YT+yv
1U4ODsT7qQA3Qh+EK6Ec5dJ/SJrpOdoD32Qs6T6Qq1qAbKNSQzKcHDDvIgIxpkcp
uWF8itzKeB3Sc/6atLMyTnS/TCA/CQ9Lm7x3fhGTL2HK7icsUnb6+Ryl5mBPUWOP
a5/RKbmYJk3A0DhFB1Ux5xKCOo2Mjtnhn/trwwpcXOLLYCRfrZqQe/PEOAfibE/r
9qn/SVai1YIK3Hg22DnZwtR3La1E7CoE+mH80urgvKrm6bsO5ai9LuNq+jbhXcsh
9MQnlT2mzSmXAaJ1fkUTgI7cU9Omg2AIFydTUlm0Ph/iK2bqgMdu4xUEOk3pGz0u
mJVhENxNgienSs0u8AlwcKa95KceS/An6u//mjrA0gvKZiry6U42k6D9RdeYn+uD
IS42givt+KTzUXXcVjHVImDnlvj2rD4Ts4VPANtUBAHf/h9ScprqL1Yymom4ihwT
SITTf07X1Nt4GbBIqqqKN3/wedZyEna2bC54dHhF/aUsccgK8nM=
=G+7B
-----END PGP SIGNATURE-----

--nextPart2781330.e9J7NaK4W3--