* docs/grub.texi (Simple configuration): Be more explicit about
GRUB_DEFAULT, and add an example. Reported by: Leslie Rhorer.
This commit is contained in:
parent
875b67ba09
commit
a826cc7d7e
2 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-03-31 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
* docs/grub.texi (Simple configuration): Be more explicit about
|
||||||
|
GRUB_DEFAULT, and add an example.
|
||||||
|
Reported by: Leslie Rhorer.
|
||||||
|
|
||||||
2011-03-30 Colin Watson <cjwatson@ubuntu.com>
|
2011-03-30 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
* docs/grub.texi (Commands): Link to "GRUB only offers a rescue
|
* docs/grub.texi (Commands): Link to "GRUB only offers a rescue
|
||||||
|
|
|
@ -1091,11 +1091,25 @@ Valid keys in @file{/etc/default/grub} are as follows:
|
||||||
@table @samp
|
@table @samp
|
||||||
@item GRUB_DEFAULT
|
@item GRUB_DEFAULT
|
||||||
The default menu entry. This may be a number, in which case it identifies
|
The default menu entry. This may be a number, in which case it identifies
|
||||||
the Nth entry in the generated menu counted from zero, or the full name of a
|
the Nth entry in the generated menu counted from zero, or the title of a
|
||||||
menu entry, or the special string @samp{saved}. Using the full name may be
|
menu entry, or the special string @samp{saved}. Using the title may be
|
||||||
useful if you want to set a menu entry as the default even though there may
|
useful if you want to set a menu entry as the default even though there may
|
||||||
be a variable number of entries before it.
|
be a variable number of entries before it.
|
||||||
|
|
||||||
|
For example, if you have:
|
||||||
|
|
||||||
|
@verbatim
|
||||||
|
menuentry 'Example GNU/Linux distribution' --class gnu-linux {
|
||||||
|
...
|
||||||
|
}
|
||||||
|
@end verbatim
|
||||||
|
|
||||||
|
then you can make this the default using:
|
||||||
|
|
||||||
|
@example
|
||||||
|
GRUB_DEFAULT='Example GNU/Linux distribution'
|
||||||
|
@end example
|
||||||
|
|
||||||
If you set this to @samp{saved}, then the default menu entry will be that
|
If you set this to @samp{saved}, then the default menu entry will be that
|
||||||
saved by @samp{GRUB_SAVEDEFAULT}, @command{grub-set-default}, or
|
saved by @samp{GRUB_SAVEDEFAULT}, @command{grub-set-default}, or
|
||||||
@command{grub-reboot}.
|
@command{grub-reboot}.
|
||||||
|
|
Loading…
Reference in a new issue