[ipxe-devel] Ability to edit variable content

Michael Brown mbrown at fensystems.co.uk
Thu Oct 25 06:53:03 UTC 2012


On 24/10/12 23:34, "Ján ONDREJ (SAL)" wrote:
> Any chance to get config's command work with only ony variable? Something
> like:
>
> config --variable test
>
> or:
>
> config scope/test

Only if you can think up some sensibly generic semantics.

While it would be possible to hack "config" to display only a single 
specified setting, I strongly suspect that the next (and reasonable) 
request would be the ability to display a group of specified settings. 
This immediately leads on to the idea of displaying all settings within 
a specified scope (rather than displaying all named and applicable 
settings within a specified scope, which is what "config" does at present).

However, there is no way within iPXE to enumerate settings within a 
scope.  For some scopes, it would be possible to enumerate settings, but 
not to know the types (and hence the display semantics) for all possible 
settings: net0.dhcp is an example of such a scope.  For some other 
scopes, enumeration is logically impossible: for example, there is no 
way to enumerate SMBIOS settings without having a list of all structure 
definitions taken from the SMBIOS spec.

Find a sensible solution to the above set of problems, and "config" can 
be made to do what you want.

Michael



More information about the ipxe-devel mailing list