X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fgrub2%2Fgrub2.c;h=f62ccdd1aa9be4271d1372660a3dd1a5590b8f43;hp=7f63c351eedb25f2e161730fa26fb5a665de219f;hb=9a5c9c9331f0c0c539cad423a4654015598b0d9d;hpb=9e5b77f258b8e993f480763d8e5269bd8c87b508 diff --git a/discover/grub2/grub2.c b/discover/grub2/grub2.c index 7f63c35..f62ccdd 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", @@ -21,6 +21,7 @@ static const char *const grub2_conf_files[] = { "/boot/grub/grub.cfg", "/boot/grub2/grub.cfg", "/boot/grub/menu.lst", + "/efi/boot/grub.cfg", "/GRUB.CFG", "/MENU.LST", "/GRUB/GRUB.CFG", @@ -28,6 +29,7 @@ static const char *const grub2_conf_files[] = { "/GRUB/MENU.LST", "/BOOT/GRUB/GRUB.CFG", "/BOOT/GRUB/MENU.LST", + "/EFI/BOOT/GRUB.CFG", NULL }; @@ -104,6 +106,9 @@ static int grub2_parse(struct discover_context *dc) parser = grub2_parser_create(dc); 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;