diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-27 19:51:49 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-27 20:02:30 +0800 |
commit | 9e5b77f258b8e993f480763d8e5269bd8c87b508 (patch) | |
tree | 6e802cf451fe385f67e51e89d423fdb6cf2a1116 /discover/grub2/grub2.c | |
parent | 77e0df22dd3fb1cf0dcdd1124a5aafa2ec872a1f (diff) | |
download | talos-petitboot-9e5b77f258b8e993f480763d8e5269bd8c87b508.tar.gz talos-petitboot-9e5b77f258b8e993f480763d8e5269bd8c87b508.zip |
discover/grub2: Populate $prefix from config file location
Rather than always using the default prefix, we should determine it from
the location of the grub2 config file.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2/grub2.c')
-rw-r--r-- | discover/grub2/grub2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/grub2/grub2.c b/discover/grub2/grub2.c index ffb6ece..7f63c35 100644 --- a/discover/grub2/grub2.c +++ b/discover/grub2/grub2.c @@ -103,7 +103,7 @@ static int grub2_parse(struct discover_context *dc) continue; parser = grub2_parser_create(dc); - grub2_parser_parse(parser, buf, len); + grub2_parser_parse(parser, *filename, buf, len); talloc_free(buf); talloc_free(parser); break; |