From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 9398C1382C5 for ; Sun, 13 Jun 2021 18:05:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22120E0C7C; Sun, 13 Jun 2021 18:05:39 +0000 (UTC) Received: from mail.digimed.co.uk (mail.digimed.co.uk [82.69.83.178]) (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 358D3E0C5E for ; Sun, 13 Jun 2021 18:05:38 +0000 (UTC) Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 3AE6065AF6 for ; Sun, 13 Jun 2021 19:05:34 +0100 (BST) Date: Sun, 13 Jun 2021 19:05:29 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Exact setting in grub to default to a kernel by name? Message-ID: <20210613190529.732bcd1d@digimed.co.uk> In-Reply-To: References: Organization: Digital Media Production X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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="Sig_/vQiBIjQMuxYX2YvzFEo8QfZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: 1d4a504e-b7ab-4889-ac13-0a8b0824e3c4 X-Archives-Hash: 7ee213dbe0bbd5dd79fe1ab012c59953 --Sig_/vQiBIjQMuxYX2YvzFEo8QfZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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? =20 > >=20 > > What about this? > >=20 > > https://www.stephenrlang.com/2017/06/setting-default-kernel-in-grub2/ > > =20 >=20 > 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. --=20 Neil Bothwick Mouse: (n.) an input device used by management to force computer users to keep at least a part of their desks clean. --Sig_/vQiBIjQMuxYX2YvzFEo8QfZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmDGSOkACgkQ92eFu0QS MJjD7A/7BGA/o9w/yZ2FekAHnf8V2USiaypwsNc1LwV0OiDK4gsPOs2FRHyARM7k 0zDpuiCNFfIafdGizQD9XJ+DYgs56PLky4vf+fYRoz7Hdua13onqpiKDtFDiqhUt iu8/xvKjntxMrEiy9i9r5+cTnmKt5P6M86hKOoZ/zPPhjNYjxX8kkTasZ0c32RaN a6Fezv0kBzc2BLc9RnVVyYYdLgjVFlilx5VIQ1It4UVvmb7jnqOVoKj0qQuqgPei JuonGQX5cXYVxbLPQoylGeNAksBG3LiJwVILMq87NEA+jyAvD45Rw7ESNARKn9uo rvhCSKXkA0dOzV/mU9XYSFzzjrI+LNOTtbEWFVN/PKC5UWuuBPkhx3bpaxN9esmw OCIasER16zDqRfbjfQwxKmswYTmDe3hy0lHHDEIremozKO6utxvGGvoDWsdaOjD3 ROZj2ycYx7JRdZprsl63AMNZuap1aV/DtBc7nXK5p4G5rVcadD2xMvFSNWizSIsG lZ3/KKUGKD+JraF7dL90VxvCNoRJr59cSKh9F22hzUb7At6RmxYPv2tPyh8HoXv9 IYS7ukCrjk3RvMRcZQb2mmdVj5inMBGSYPfEKEuk59qXjmkJyYVlYUg3KDtUd1Rg ugkgsygA9ZEfMFtSOrZyREtWPFnXQnv3294QQ6qBWh5wvW/HoKc= =/6Af -----END PGP SIGNATURE----- --Sig_/vQiBIjQMuxYX2YvzFEo8QfZ--