X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fgrub2%2Fgrub2.c;h=34746164728f4e3edc166a7c39f1039e94227f15;hb=5b33aaaaad68b890aacc3ddc4e47812a58d8c1e6;hp=ffb6ecefcb5ab13a166cbdab8a0092db85a81ccd;hpb=cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563;p=petitboot diff --git a/discover/grub2/grub2.c b/discover/grub2/grub2.c index ffb6ece..3474616 100644 --- a/discover/grub2/grub2.c +++ b/discover/grub2/grub2.c @@ -1,5 +1,7 @@ #include +#include +#include #include #include @@ -9,8 +11,6 @@ #include #include "grub2.h" -#include "parser.h" -#include "lexer.h" static const char *const grub2_conf_files[] = { "/grub.cfg", @@ -103,7 +103,10 @@ 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); + device_handler_status_dev_info(dc->handler, dc->device, + _("Parsed GRUB configuration from %s"), + *filename); talloc_free(buf); talloc_free(parser); break;