grub-devel
[Top][All Lists]
Advanced

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

Re: Source, configfile and normal


From: Jordan Uggla
Subject: Re: Source, configfile and normal
Date: Thu, 8 Mar 2012 01:33:12 -0800

On Wed, Mar 7, 2012 at 3:05 PM, Arbiel Perlacremaz
<address@hidden> wrote:
> What are the differences between
> normal file.cfg

The command "normal" does not take any arguments. It changes from
rescue mode to normal mode. Normal mode then loads $prefix/grub.cfg
automatically. I'm pretty sure that the only time that a user should
ever run "normal" is documented here:
http://www.gnu.org/software/grub/manual/grub.html#GRUB-only-offers-a-rescue-shell

> configfile file.cfg

All paths in grub are absolute, so it would need to be "configfile
/file.cfg", which would execute file.cfg in a new context *and* create
a new menu. It follows basically the same environment variable
semantics as "bash file.sh" in that only exported variables will be
available to file.cfg, and file.cfg cannot modify the environment
variables of its parent.

>
> I understand
> source file.cfg
> to be equivalent to the inclusion into the current file of the file.cfg. In
> particular, variables are not to be exported to be available to file.cfg
> commands.

Correct, much like "source file.sh" in bash.

>
> Am I right ?
>
> Arbiel
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)



reply via email to

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