Regid Ichira
2011-Nov-27 15:18 UTC
[syslinux] patch, doc/syslinux.txt: Explicitly stating that a label can be set for DEFAULT
Where the documentation states that a DEFAULT directive can point to a label? --- a/doc/syslinux.txt 2011-04-19 00:24:17.000000000 +0300 +++ b/doc/syslinux.txt 2011-11-27 17:10:54.000000000 +0200 @@ -135,7 +135,8 @@ INCLUDE filename DEFAULT kernel options... Sets the default command line. If Syslinux boots automatically, it will act just as if the entries after DEFAULT had been typed - in at the "boot:" prompt. + in at the "boot:" prompt. A label can be stated instead of + kernel options... . The LABEL directive is described below. If no configuration file is present, or no DEFAULT entry is present in the config file, an error message is displayed and
Regid Ichira
2011-Nov-27 16:38 UTC
[syslinux] patch, doc/syslinux.txt: Explicitly stating that a label can be set for DEFAULT
Now I noticed that DEFAULT label is mentioned in doc/menu.txt. Is this better: --- a/doc/syslinux.txt 2011-04-19 00:24:17.000000000 +0300 +++ b/doc/syslinux.txt 2011-11-27 17:10:54.000000000 +0200 @@ -135,7 +135,9 @@ INCLUDE filename DEFAULT kernel options... Sets the default command line. If Syslinux boots automatically, it will act just as if the entries after DEFAULT had been typed - in at the "boot:" prompt. + in at the "boot:" prompt. A label can be stated instead of + kernel options... . The LABEL directive is described below. + doc/menu.txt also describes the DEFAULT directive. If no configuration file is present, or no DEFAULT entry is present in the config file, an error message is displayed and --- a/doc/menu.txt 2011-04-19 00:24:17.000000000 +0300 +++ b/doc/menu.txt 2011-11-27 17:36:02.000000000 +0200 @@ -306,9 +306,9 @@ DEFAULT label directive has the same effect as both MENU DEFAULT and MENU START. - For backwards compatibility with earlier versions of Syslinux, - this directive is ignored unless the configuration file also - contains a UI directive. + Some earlier versions of Syslinux used to ignore this + directive unless the configuration file also contains a UI + directive. This is no longer the case. Note: the CLI accepts options after the label, or even a non-label. The menu system does not support that. ?
Jeffrey Hutzelman
2011-Nov-28 05:02 UTC
[syslinux] patch, doc/syslinux.txt: Explicitly stating that a label can be set for DEFAULT
On Sun, 2011-11-27 at 08:38 -0800, Regid Ichira wrote:> --- a/doc/menu.txt 2011-04-19 00:24:17.000000000 +0300 > +++ b/doc/menu.txt 2011-11-27 17:36:02.000000000 +0200 > @@ -306,9 +306,9 @@ DEFAULT label > directive has the same effect as both MENU DEFAULT and MENU > START. > > - For backwards compatibility with earlier versions of Syslinux, > - this directive is ignored unless the configuration file also > - contains a UI directive. > + Some earlier versions of Syslinux used to ignore this > + directive unless the configuration file also contains a UI > + directive. This is no longer the case. > > Note: the CLI accepts options after the label, or even a > non-label. The menu system does not support that.No. The simple menu system, which is the component documented in menu.txt, obeys the DEFAULT directive only if a UI directive is present. Otherwise the menu system ignores this directive. This is necessary to avoid a potential loop with config files which use the DEFAULT directive to invoke the menu system, which was the usual way of doing so prior to the introduction of the UI directive.
Regid Ichira
2011-Nov-28 18:14 UTC
[syslinux] patch, doc/{syslinux, menu}.txt: Clarifying the DEFAULT directive
--- On Mon, 11/28/11, Jeffrey Hutzelman wrote:> The simple menu system, which is the component documented in > menu.txt, obeys the DEFAULT directive only if a UI directive is present. > Otherwise the menu system ignores this directive.?This is necessary to > avoid a potential loop with config files which use the DEFAULT directive > to invoke the menu system, which was the usual way of doing > so prior to the introduction of the UI directive. >--- a/doc/menu.txt 2011-04-19 00:24:17.000000000 +0300 +++ b/doc/menu.txt 2011-11-27 17:36:02.000000000 +0200 @@ -307,8 +307,8 @@ DEFAULT label START. For backwards compatibility with earlier versions of Syslinux, - this directive is ignored unless the configuration file also - contains a UI directive. + this directive is ignored only by the MENU system, unless the + configuration file also contains a UI directive. Note: the CLI accepts options after the label, or even a non-label. The menu system does not support that. --- a/doc/syslinux.txt 2011-04-19 00:24:17.000000000 +0300 +++ b/doc/syslinux.txt 2011-11-27 17:10:54.000000000 +0200 @@ -135,7 +135,10 @@ INCLUDE filename DEFAULT kernel options... Sets the default command line. If Syslinux boots automatically, it will act just as if the entries after DEFAULT had been typed - in at the "boot:" prompt. + in at the "boot:" prompt. A (CLI) label can be stated instead + of kernel options... . The LABEL directive is described below. + doc/menu.txt also describes potential aspects of the DEFAULT + directive. If no configuration file is present, or no DEFAULT entry is present in the config file, an error message is displayed and