From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
Date: Sun, 13 Jun 2021 19:45:50 +0100 [thread overview]
Message-ID: <12790259.uLZWGnKmhe@lenovo.localdomain> (raw)
In-Reply-To: <20210613190529.732bcd1d@digimed.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2455 bytes --]
On Sunday, 13 June 2021 19:05:29 BST Neil Bothwick wrote:
> On Sun, 13 Jun 2021 09:33:57 -0400, Walter Dnes wrote:
> > On Sun, Jun 13, 2021 at 06:46:15AM +0200, Hund wrote
> >
> > > >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?
> > >
> > > What about this?
> > >
> > > https://www.stephenrlang.com/2017/06/setting-default-kernel-in-grub2/
> > >
> > Is /boot/grub/grub.cfg the file that actually controls bootup, and is
> >
> > all 154 lines of verbosity really necessary? For menu entries I see...
>
> Not necessary, but does no harm either. The first 90% of the file is
> automated setup, which you can replace with hard coded entries or just
> leave it to its own devices. The only part you need to think about is the
> menuentry sections.
>
> > I'd be tempted to do a manual gub.cfg if I had documentation.
>
> GRUB has extensive documentation. it's not the best written but every
> configuration option is described.
>
> Isn't this a new laptop? If so, why torment yourself with GRUB when you
> have UEFI available to you? The only real justification for using GRUB in
> such a situation is that you are completely familiar with it and don't
> want to learn something else. But if you have to learn something, you may
> as well learn the 2/3 line configs of systemd-boot.
>
> Note that systemd-boot doesn't require systemd, it's just the gummiboot
> boot manager that was merged into systemd taken out again. Or you could
> use rEFInd if you prefer a prettier boot menu.
I do like rEFInd, feels AppleMac-like. :-)
However, I have abandoned all boot managers these days on UEFI MoBos and just
use the native UEFI firmware to boot with.[1] It's simpler, lighter and
faster. However, I don't boot into different OS/kernels unless I have to and
when I do I have to use the UEFI menu GUI to switch OS/kernels, so this won't
suit all use cases.
This approach requires to enable the 'EFI boot stub' option in the kernel, so
that the UEFI firmware can recognise and load the kernel directly as an EFI
executable.[2] Then it is a matter of using the efibootmgr on the CLI to set
up my boot menu labels and OS/kernel order.[3]
[1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
Bootloader#Alternative_2:_efibootmgr
[2] https://wiki.gentoo.org/wiki/EFI_Stub
[3] https://wiki.gentoo.org/wiki/Efibootmgr
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-06-13 18:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 4:07 [gentoo-user] Exact setting in grub to default to a kernel by name? Walter Dnes
2021-06-13 4:46 ` Hund
2021-06-13 13:33 ` Walter Dnes
2021-06-13 17:38 ` [gentoo-user] " Grant Edwards
2021-06-13 22:57 ` Walter Dnes
2021-06-13 23:20 ` Neil Bothwick
2021-06-14 2:34 ` Walter Dnes
2021-06-14 11:47 ` Neil Bothwick
2021-06-14 1:00 ` Grant Edwards
2021-06-14 6:44 ` Walter Dnes
2021-06-14 8:38 ` Grant Edwards
2021-06-14 20:25 ` Walter Dnes
2021-06-15 13:56 ` Neil Bothwick
2021-06-16 0:51 ` [gentoo-user] [SOLVED} " Walter Dnes
2021-06-13 18:05 ` [gentoo-user] " Neil Bothwick
2021-06-13 18:45 ` Michael [this message]
2021-06-13 20:09 ` Philip Webb
2021-06-13 20:58 ` Walter Dnes
2021-06-14 8:25 ` Peter Humphrey
2021-06-13 8:21 ` Neil Bothwick
2021-06-13 8:26 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12790259.uLZWGnKmhe@lenovo.localdomain \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox