grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] doc: document config_directory and config_file variables


From: Arbiel (gmx)
Subject: Re: [PATCH] doc: document config_directory and config_file variables
Date: Sat, 7 Nov 2015 20:51:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Hi

There seems to be other variables and command parameters which lack
documentation.

Here is a list of such variables found in my grub.cfg files (I have
discarded "save_env"ed variables, obviously environment variables) and
which are not set in the environment block

${feature_menuentry_id}
${boot_once}
$feature_all_video_module
$feature_default_font_path
$feature_platform_search_hint
$feature_timeout_style
$match

As the names suggest, these variables could be distribution specific
(Ubuntu). What do you think ?

undocumented command parameter : --hint (command search), and some other
--hint.something which I haven't been able to localise just now.

I found in my grub.cfg file a "hwmatch" command which is not defifed as
a function. Is this a undocumented grub command ? Its result may well
the  $match variable.


Le 07/11/2015 11:21, Andrey Borzenkov a écrit :
> People are using this variable and it should be documented.
>
> ---
>  docs/grub.texi | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>
> diff --git a/docs/grub.texi b/docs/grub.texi
> index b9f41a7..db765a3 100644
> --- a/docs/grub.texi
> +++ b/docs/grub.texi
> @@ -3038,6 +3038,8 @@ These variables have special meaning to GRUB.
>  * cmdpath::
>  * color_highlight::
>  * color_normal::
> +* config_directory::
> +* config_file::
>  * debug::
>  * default::
>  * fallback::
> @@ -3180,6 +3182,22 @@ matching colors of first half.
>  to support whole rgb24 palette but currently there is no compelling reason
>  to go beyond the current 16 colors.
>  
> +
> address@hidden config_directory
> address@hidden config_directory
> +
> +This variable is automatically set by GRUB to the directory part of
> +current configuration file name (@pxref{config_file}).
> +
> +
> address@hidden config_file
> address@hidden config_file
> +
> +This variable is automatically set by GRUB to the name of configuration file 
> that is being
> +processed by commands @command{configfile} (@pxref{configfile}) or 
> @command{normal}
> +(@pxref{normal}).  It is restored to the previous value when command 
> completes.
> +
> +
>  @node debug
>  @subsection debug
>  


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]