1 |
On Sun, 13 Jun 2021 00:07:27 -0400, Walter Dnes wrote: |
2 |
|
3 |
> I have multiple (would you believe 2?) kernels in /boot. |
4 |
> |
5 |
> [x8940][waltdnes][~] ll /boot/vm* |
6 |
> -rwxr-xr-x 1 root root 7046848 Jun 12 23:46 /boot/vmlinuz-experimental |
7 |
> -rwxr-xr-x 1 root root 6986624 Jun 12 16:55 /boot/vmlinuz-production |
8 |
> |
9 |
> The grub kernel listing at bootup is |
10 |
> |
11 |
> - production kernel |
12 |
> - production kernel recovery mode |
13 |
> - experimental kernel |
14 |
> - experimental kernel recovery mode |
15 |
> |
16 |
> The default is the first entry, i.e. "GRUB_DEFAULT=0" in |
17 |
> /etc/default/grub. I prefer going with "experimental". If I screw up |
18 |
> the config to the point where it can't boot, then I'll manually override |
19 |
> to "production". The simple way of getting the third entry as default |
20 |
> is "GRUB_DEFAULT=2" (remember to count from zero). |
21 |
> |
22 |
> This works for now. But what happens if/when I add more kernels for |
23 |
> whatever reason? Let me rephrase the question more generally... given a |
24 |
> kernel "/boot/vmlinuz-fubar" how and where do I specify it by name as |
25 |
> the default boot kernel? |
26 |
> |
27 |
|
28 |
The default setting takes either the number of title of a kernel, so |
29 |
default="experimental kernel" should do it. |
30 |
|
31 |
|
32 |
-- |
33 |
Neil Bothwick |
34 |
|
35 |
A Smith & Wesson beats Four Aces everytime. |