Blame SOURCES/0257-docs-grub.texi-Document-menuentry-id-option.patch

f96e0b
From 6b83cf4249d933950a7d6b1cf3b0baea881f691f Mon Sep 17 00:00:00 2001
f96e0b
From: Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
Date: Fri, 5 Apr 2013 10:08:20 +0200
f96e0b
Subject: [PATCH 257/482] 	* docs/grub.texi: Document menuentry --id
f96e0b
 option.
f96e0b
f96e0b
---
f96e0b
 ChangeLog      |  4 ++++
f96e0b
 docs/grub.texi | 16 ++++++++++------
f96e0b
 2 files changed, 14 insertions(+), 6 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index f2c2d2f..6113a39 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,7 @@
f96e0b
+2013-04-04  Andrey Borzenkov  <arvidjaar@gmail.com>
f96e0b
+
f96e0b
+	* docs/grub.texi: Document menuentry --id option.
f96e0b
+
f96e0b
 2013-04-04  Francesco Lavra  <francescolavra.fl@gmail.com>
f96e0b
 
f96e0b
 	* util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
f96e0b
diff --git a/docs/grub.texi b/docs/grub.texi
f96e0b
index 0b66827..742d406 100644
f96e0b
--- a/docs/grub.texi
f96e0b
+++ b/docs/grub.texi
f96e0b
@@ -1522,7 +1522,7 @@ definitions do not affect the exit status in @code{$?}.  When executed, the
f96e0b
 exit status of a function is the exit status of the last command executed in
f96e0b
 the body.
f96e0b
 
f96e0b
-@item menuentry @var{title} [@option{--class=class} @dots{}] [@option{--users=users}] [@option{--unrestricted}] [@option{--hotkey=key}] @{ @var{command}; @dots{} @}
f96e0b
+@item menuentry @var{title} [@option{--class=class} @dots{}] [@option{--users=users}] [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @{ @var{command}; @dots{} @}
f96e0b
 @xref{menuentry}.
f96e0b
 @end table
f96e0b
 
f96e0b
@@ -3215,13 +3215,13 @@ These commands can only be used in the menu:
f96e0b
 
f96e0b
 @deffn Command menuentry @var{title} @
f96e0b
  [@option{--class=class} @dots{}] [@option{--users=users}] @
f96e0b
- [@option{--unrestricted}] [@option{--hotkey=key}] @
f96e0b
+ [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @
f96e0b
  @{ @var{command}; @dots{} @}
f96e0b
 This defines a GRUB menu entry named @var{title}.  When this entry is
f96e0b
 selected from the menu, GRUB will set the @var{chosen} environment variable
f96e0b
-to @var{title}, execute the list of commands given within braces, and if the
f96e0b
-last command in the list returned successfully and a kernel was loaded it
f96e0b
-will execute the @command{boot} command.
f96e0b
+to value of @option{--id} if @option{--id} is given, execute the list of
f96e0b
+commands given within braces, and if the last command in the list returned
f96e0b
+successfully and a kernel was loaded it will execute the @command{boot} command.
f96e0b
 
f96e0b
 The @option{--class} option may be used any number of times to group menu
f96e0b
 entries into classes.  Menu themes may display different classes using
f96e0b
@@ -3236,6 +3236,10 @@ entries.  @xref{Security}.
f96e0b
 The @option{--hotkey} option associates a hotkey with a menu entry.
f96e0b
 @var{key} may be a single letter, or one of the aliases @samp{backspace},
f96e0b
 @samp{tab}, or @samp{delete}.
f96e0b
+
f96e0b
+The @option{--id} may be used to associate unique identifier with a menu entry.
f96e0b
+@var{id} is string of ASCII aphanumeric characters, underscore and hyphen
f96e0b
+and should not start with a digit.
f96e0b
 @end deffn
f96e0b
 
f96e0b
 
f96e0b
@@ -3244,7 +3248,7 @@ The @option{--hotkey} option associates a hotkey with a menu entry.
f96e0b
 
f96e0b
 @deffn Command submenu @var{title} @
f96e0b
  [@option{--class=class} @dots{}] [@option{--users=users}] @
f96e0b
- [@option{--unrestricted}] [@option{--hotkey=key}] @
f96e0b
+ [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @
f96e0b
  @{ @var{menu entries} @dots{} @}
f96e0b
 This defines a submenu.  An entry called @var{title} will be added to the
f96e0b
 menu; when that entry is selected, a new menu will be displayed showing all
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b