]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* docs/grub.texi (Simple configuration): Be more explicit about
authorColin Watson <cjwatson@ubuntu.com>
Thu, 31 Mar 2011 07:46:41 +0000 (08:46 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Thu, 31 Mar 2011 07:46:41 +0000 (08:46 +0100)
GRUB_DEFAULT, and add an example.
Reported by: Leslie Rhorer.

ChangeLog
docs/grub.texi

index 1a533ae17cac85b5f3a398a69cedb4cb90bd3b26..ff95829188c82337ccb9fcada010992b38c43d64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
index fa38b96ff96c4e4862f766163c48600f8744606c..0808ded6b946594a6005da342784bd48d9fe13b7 100644 (file)
@@ -1091,11 +1091,25 @@ Valid keys in @file{/etc/default/grub} are as follows:
 @table @samp
 @item GRUB_DEFAULT
 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
-menu entry, or the special string @samp{saved}.  Using the full name may be
+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 title may be
 useful if you want to set a menu entry as the default even though there may
 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
 saved by @samp{GRUB_SAVEDEFAULT}, @command{grub-set-default}, or
 @command{grub-reboot}.