public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
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 09:33:57 -0400	[thread overview]
Message-ID: <YMYJRcj/Zl40R3g8@waltdnes.org> (raw)
In-Reply-To: <D6D30DEA-7B89-47FE-8645-541CB363865C@linuxkompis.se>

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...

=====================================================================
menuentry 'Gentoo GNU/Linux, with Linux production' --class blah blah
blah {
blah blah blah
set root='hd0,gpt1'
linux   /vmlinuz-production root=/dev/sda2 ro  noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1
}
menuentry 'Gentoo GNU/Linux, with Linux production (recovery mode)'
--class blah blah blah {
blah blah blah
set root='hd0,gpt1'
linux   /vmlinuz-production root=/dev/sda2 ro single
}
menuentry 'Gentoo GNU/Linux, with Linux experimental' --class blah blah
blah {
blah blah blah
set root='hd0,gpt1'
linux   /vmlinuz-experimental root=/dev/sda2 ro  noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1
}
menuentry 'Gentoo GNU/Linux, with Linux experimental (recovery mode)'
--class blah blah blah {
blah blah blah
set root='hd0,gpt1'
linux   /vmlinuz-experimental root=/dev/sda2 ro single
}
=====================================================================

  I'd be tempted to do a manual gub.cfg if I had documentation.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


  reply	other threads:[~2021-06-13 13:33 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 [this message]
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=YMYJRcj/Zl40R3g8@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