On Thu, Sep 29, 2011 at 3:44 AM, Dr. Zimmermann
<[email protected]> wrote:
> Hi,
>
> a general question concerning variable initialization in grub.cfg:
>
> As the subject says I'd like to initialize a variable in grub.cfg
> (dynamically during runtime) from the contents of a file.

What is your end goal? The easiest way to initialize a variable from a
file is to have that file be a source-able grub script, for instance a
file containing only 'my_variable=foo' could be loaded by grub using
'source /path/to/file.cfg' and after sourcing the file $my_variable
would be initialized to 'foo'.

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

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to