[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: in grub.cfg: how to initialze a variable from the contents of a file
From: |
Jordan Uggla |
Subject: |
Re: in grub.cfg: how to initialze a variable from the contents of a file |
Date: |
Sat, 1 Oct 2011 14:52:17 -0700 |
On Thu, Sep 29, 2011 at 3:44 AM, Dr. Zimmermann
<address@hidden> 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)
- Re: in grub.cfg: how to initialze a variable from the contents of a file,
Jordan Uggla <=