diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-09-27 14:21:53 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-01 13:49:14 +0800 |
commit | fcbb46482c413192756ce865a7336c5638fda6d3 (patch) | |
tree | f620654cffba8c2659d20119f1114321ca09df28 /discover/grub2/builtins.c | |
parent | 55782f91e21dc8b9d296f13f0562670095042d1f (diff) | |
download | talos-petitboot-fcbb46482c413192756ce865a7336c5638fda6d3.tar.gz talos-petitboot-fcbb46482c413192756ce865a7336c5638fda6d3.zip |
discover/grub2: Implement load_env
Use the new parser_request_file API to access the GRUB environment
block.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2/builtins.c')
-rw-r--r-- | discover/grub2/builtins.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discover/grub2/builtins.c b/discover/grub2/builtins.c index 7a5d867..71ae61a 100644 --- a/discover/grub2/builtins.c +++ b/discover/grub2/builtins.c @@ -256,6 +256,10 @@ static int builtin_nop(struct grub2_script *script __attribute__((unused)), return 0; } +extern int builtin_load_env(struct grub2_script *script, + void *data __attribute__((unused)), + int argc, char *argv[]); + static struct { const char *name; grub2_function fn; @@ -296,6 +300,10 @@ static struct { .name = "false", .fn = builtin_false, }, + { + .name = "load_env", + .fn = builtin_load_env, + }, }; static const char *nops[] = { |