Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Exact setting in grub to default to a kernel by name?
Date: Mon, 14 Jun 2021 06:44:08
Message-Id: YMb6wsVYGccKz6np@waltdnes.org
In Reply to: [gentoo-user] Re: Exact setting in grub to default to a kernel by name? by Grant Edwards
1 On Mon, Jun 14, 2021 at 01:00:38AM -0000, Grant Edwards wrote
2
3 > All my grub.cfg files looks like this:
4 >
5 > ========================================================================
6 > timeout=10
7 > root=hd0,1
8 > default=0
9 >
10 > menuentry 'vmlinuz-5.10.27-gentoo' {
11 > linux /boot/vmlinuz-5.10.27-gentoo root=/dev/sda1
12 > }
13 >
14 > menuentry 'vmlinuz-5.4.97-gentoo' {
15 > linux /boot/vmlinuz-5.4.97-gentoo root=/dev/sda1
16 > }
17 > ========================================================================
18
19 Thanks. It's nice to have a working example. Are you booting via
20 BIOS? I'm on a UEFI-only machine, and the generated grub.cfg has...
21
22 set root='hd0,gpt1' (EFI fat partition sda1 where to look for kernels)
23
24 linux /vmlinuz-production root=/dev/sda2 (ext3fs on sda2)
25
26 --
27 Walter Dnes <waltdnes@××××××××.org>
28 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>