help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting GRUB 2 default menu entry


From: Andrey Borzenkov
Subject: Re: Setting GRUB 2 default menu entry
Date: Mon, 28 Jan 2013 13:31:07 +0400

В Mon, 28 Jan 2013 10:15:21 +0100
Francesco Turco <address@hidden> пишет:

> On Mon, Jan 28, 2013, at 9:53, Andrey Borzenkov wrote:
> > GRUB_DEFAULT does not change how entries are displayed, it defines
> > which menu entry will be booted. From your description it is not clear
> > what you mean. Did you expect default entry to be the first in the
> > list? Did you wait until grub started to boot default entry?
> 
> I need a way to change the first default entry that is displayed at boot
> time. The one that comes before the submenu "Advanced options for Gentoo
> GNU/Linux".

That's currently not possible using grub-mkconfig. Distributions are
free to maintain grub.cfg without using grub-mkconfig, so you may ask
your distro.

But it also is not needed for ...

>             This is because I'd prefer not to use this submenu every
> time I reboot.

If you set GRUB_DEFAULT it will be booted automatically even if it is
"hidden" in submenu. To make sure it always refers to the same kernel
even if number of entries has changed, you should set it to menuentry
id. It is expected to be reasonably stable and unique. This is string
after "$menuentry_id_option", something like

gnulinux-3.4.11-2.16-desktop-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5


>                I just like to select the first entry (the one before the
> submenu), but it should boot the right kernel, not the one that GRUB
> wants me to boot at the moment. I don't expect the default entry to be
> the first in the list.

These two sentences are mutually exclusive :) Either you expect default
to be first or not.

>                       I expect the default entry to be the one I choose
> from the list. That is, the default entry should never be a random one.
> I should decide every time which entry becomes the default one. As it
> happened in GRUB legacy.
> 

Using menuentry id is more predictable than using menuentry numbers as
it was in grub legacy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]