From: "Walter Dnes" <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Exact setting in grub to default to a kernel by name?
Date: Sun, 13 Jun 2021 00:07:27 -0400 [thread overview]
Message-ID: <YMWEfxVYBKNmWjs/@waltdnes.org> (raw)
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?
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
next reply other threads:[~2021-06-13 4:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 4:07 Walter Dnes [this message]
2021-06-13 4:46 ` [gentoo-user] Exact setting in grub to default to a kernel by name? 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
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=YMWEfxVYBKNmWjs/@waltdnes.org \
--to=waltdnes@waltdnes.org \
--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