Next: submenu, Up: Menu-specific commands [Contents][Index]
This defines a GRUB menu entry named title. When this entry is
selected from the menu, GRUB will set the chosen environment variable
to value of --id if --id is given, execute the list of
commands given within braces, and if the last command in the list returned
successfully and a kernel was loaded it will execute the boot
command.
The --class option may be used any number of times to group menu entries into classes. Menu themes may display different classes using different styles.
The --users option grants specific users access to specific menu entries. See Security.
The --unrestricted option grants all users access to specific menu entries. See Security.
The --hotkey option associates a hotkey with a menu entry. key may be a single letter, or one of the aliases ‘backspace’, ‘tab’, or ‘delete’.
The --id may be used to associate unique identifier with a menu entry. id is string of ASCII aphanumeric characters, underscore and hyphen and should not start with a digit.
All other arguments including title are passed as positional parameters
when list of commands is executed with title always assigned to $1
.