* Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
@ 2021-06-13 8:21 99% ` Neil Bothwick
0 siblings, 0 replies; 1+ results
From: Neil Bothwick @ 2021-06-13 8:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]
On Sun, 13 Jun 2021 00:07:27 -0400, Walter Dnes wrote:
> I have multiple (would you believe 2?) kernels in /boot.
>
> [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
>
> The grub kernel listing at bootup is
>
> - production kernel
> - production kernel recovery mode
> - experimental kernel
> - experimental kernel recovery mode
>
> The default is the first entry, i.e. "GRUB_DEFAULT=0" 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=2" (remember to count from zero).
>
> 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?
>
The default setting takes either the number of title of a kernel, so
default="experimental kernel" should do it.
--
Neil Bothwick
A Smith & Wesson beats Four Aces everytime.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-06-13 4:07 [gentoo-user] Exact setting in grub to default to a kernel by name? Walter Dnes
2021-06-13 8:21 99% ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox