Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
Date: Sun, 13 Jun 2021 13:33:48
Message-Id: YMYJRcj/Zl40R3g8@waltdnes.org
In Reply to: Re: [gentoo-user] Exact setting in grub to default to a kernel by name? by Hund
1 On Sun, Jun 13, 2021 at 06:46:15AM +0200, Hund wrote
2 > >Let me rephrase the question more generally... given a
3 > >kernel "/boot/vmlinuz-fubar" how and where do I specify it by name as
4 > >the default boot kernel?
5 >
6 > What about this?
7 >
8 > https://www.stephenrlang.com/2017/06/setting-default-kernel-in-grub2/
9
10 Is /boot/grub/grub.cfg the file that actually controls bootup, and is
11 all 154 lines of verbosity really necessary? For menu entries I see...
12
13 =====================================================================
14 menuentry 'Gentoo GNU/Linux, with Linux production' --class blah blah
15 blah {
16 blah blah blah
17 set root='hd0,gpt1'
18 linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1
19 }
20 menuentry 'Gentoo GNU/Linux, with Linux production (recovery mode)'
21 --class blah blah blah {
22 blah blah blah
23 set root='hd0,gpt1'
24 linux /vmlinuz-production root=/dev/sda2 ro single
25 }
26 menuentry 'Gentoo GNU/Linux, with Linux experimental' --class blah blah
27 blah {
28 blah blah blah
29 set root='hd0,gpt1'
30 linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1
31 }
32 menuentry 'Gentoo GNU/Linux, with Linux experimental (recovery mode)'
33 --class blah blah blah {
34 blah blah blah
35 set root='hd0,gpt1'
36 linux /vmlinuz-experimental root=/dev/sda2 ro single
37 }
38 =====================================================================
39
40 I'd be tempted to do a manual gub.cfg if I had documentation.
41
42 --
43 Walter Dnes <waltdnes@××××××××.org>
44 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
[gentoo-user] Re: Exact setting in grub to default to a kernel by name? Grant Edwards <grant.b.edwards@×××××.com>
Re: [gentoo-user] Exact setting in grub to default to a kernel by name? Neil Bothwick <neil@××××××××××.uk>