From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: grub2 defaults
Date: Wed, 26 Mar 2014 16:12:08 +0000 [thread overview]
Message-ID: <20140326161208.46d98b36@hactar.digimed.co.uk> (raw)
In-Reply-To: <loom.20140326T152545-26@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1682 bytes --]
On Wed, 26 Mar 2014 14:42:51 +0000 (UTC), James wrote:
> > > So when I get the Grub2 (ascii) boot menu and just select the
> > > default, it boots kernel-3.13.7-gentoo, despite
> > > 'kernel-3.13.6-gentoo' being set in as the default for Grub2?
>
> > DEFAULT, if not set to a number, matches the title or --id of a menu
> > entry, not the kernel name (you could have several entries with the
> > same kernel).
> Do you have syntax examples for --id, or is that just a generic
> descriptor?
--id "some string" - it's in the info pages.
> So would the option for local kernel versioning built into the
> kernel be recognized by grub2 to distinguishing between differnent
> (locale) versions of the same kernel version?
>
> menuconfig--> General Setup--> Local version-append to kernel release
> ???
You want the name of the menuentry, not the name of the kernel. I use a
custom script to generate the entries, but running the standard 10linux
script here produces entries like
menuentry 'GNU/Linux, with Linux 3.13.7-gentoo'
You would need to match on that for DEFAULT.
> OR:
> So how do I know which number matches which kernel, since using the
> name does not match them up as desired to select to boot?
By looking at grub.cfg. Unfortunately, this changes each time you add a
kernel, the number for that older one increments each time.
If you have a particular entry you want to boot, you may be better off
defining a menu entry for it in /etc/grub.d/40_custom, then you can set
the name for it and your DEFAULT setting should work.
--
Neil Bothwick
Micro-: (prefix) anything both very small and very expensive.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2014-03-26 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 20:42 [gentoo-user] grub2 defaults James
2014-03-25 21:47 ` Neil Bothwick
2014-03-26 14:42 ` [gentoo-user] " James
2014-03-26 16:12 ` Neil Bothwick [this message]
2014-03-26 16:16 ` [gentoo-user] " thegeezer
2014-03-27 20:48 ` [gentoo-user] " James
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=20140326161208.46d98b36@hactar.digimed.co.uk \
--to=neil@digimed.co.uk \
--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