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 56F281382C5 for ; Sun, 13 Jun 2021 08:21:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DECBE09D0; Sun, 13 Jun 2021 08:21:47 +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 B33BAE09CA for ; Sun, 13 Jun 2021 08:21:46 +0000 (UTC) Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 1690D63CA3 for ; Sun, 13 Jun 2021 09:21:43 +0100 (BST) Date: Sun, 13 Jun 2021 09:21:36 +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: <20210613092136.1626ce27@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_/bl_qL24BJd6BRuiYbuxBiG4"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: 93334467-8140-4dae-978a-f1bc76279675 X-Archives-Hash: 101fa19c9fb3cefdb2bc4d62036291ee --Sig_/bl_qL24BJd6BRuiYbuxBiG4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 13 Jun 2021 00:07:27 -0400, Walter Dnes wrote: > I have multiple (would you believe 2?) kernels in /boot. >=20 > [x8940][waltdnes][~] ll /boot/vm* > -rwxr-xr-x 1 root root 7046848 Jun 12 23:46 /boot/vmlinuz-experimental > -rwxr-xr-x 1 root root 6986624 Jun 12 16:55 /boot/vmlinuz-production >=20 > The grub kernel listing at bootup is >=20 > - production kernel > - production kernel recovery mode > - experimental kernel > - experimental kernel recovery mode >=20 > The default is the first entry, i.e. "GRUB_DEFAULT=3D0" in > /etc/default/grub. I prefer going with "experimental". If I screw up > the config to the point where it can't boot, then I'll manually override > to "production". The simple way of getting the third entry as default > is "GRUB_DEFAULT=3D2" (remember to count from zero). >=20 > This works for now. But what happens if/when I add more kernels for > whatever reason? 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 The default setting takes either the number of title of a kernel, so default=3D"experimental kernel" should do it. --=20 Neil Bothwick A Smith & Wesson beats Four Aces everytime. --Sig_/bl_qL24BJd6BRuiYbuxBiG4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmDFwBAACgkQ92eFu0QS MJii0A//WJj4CMlYqgy8Rssv2Qr1/qczdRmVHt5H9WxDpsg/Uye+DzDF4+j32U4e oB6Y93YLHAWdICS4mijNmE0RPxmDdpEGMer4eGH52KSgE9DpucaJBiE5t4ROhkNg HxkC3Nx7r+H+yroEdWWCcCEeijUHiA6Z7fa/BPmDD40VYvWl+fMEUR1HGBWFe6CI t+WDvnrkvJvNX20wdZTQSSR5KLM2Ftf0cxrKAJW/Dz/ivg3UZMHSuCTTgp7YqDVY a+SvTlLrAljU7kCGf0V8ScphgSqz8mommLNfHQSTSGbxVbQBC8imlQAS53jNZ3MG EsNu1B/dyon5bSM4e63oOgFxjaj4RhjTCQRD1fzN09CsFXWa4UbbbQTg8OGiC0ks 1g6HEJMvAfzKswC0OEH6yAnsrb2tK5lf+x+f9w1IOfe4lhiIaAMRgQqyPKVDiOuN pUmpa872HjVsq/JBCa0Prt/6wWb/4FNU+k3/rXk4QV1/vJ1HaQ+9OIGHuT728m2m 2Jr5grVjrDO3o0DFDlm/bniVup/RpGct4bpJpfJMUs0f0ZCu4iWIuCq17YH+umQ/ Nb1m9YwkzOnn2tO/6ag+vRNAbTgYRYQcNz+NvEipkWTLdi4w86ornWS5llT7l5Hc +zGHBQdsH09+UxloYBxlyM9OCb1EXYu+j4eQ4j8KE3fIigvFseU= =CVEb -----END PGP SIGNATURE----- --Sig_/bl_qL24BJd6BRuiYbuxBiG4--