parsers: populate resolve_resource members
[petitboot] / discover / grub2-parser.c
index 05893292ea2b4cf93caa30f0a2d34e4bcb9bc605..97b96537482f7b1bc83f31855f052e4ea041138b 100644 (file)
@@ -192,10 +192,11 @@ static int grub2_parse(struct discover_context *dc, char *buf, int len)
 }
 
 static struct parser grub2_parser = {
-       .name           = "grub2",
-       .method         = CONF_METHOD_LOCAL_FILE,
-       .parse          = grub2_parse,
-       .filenames      = grub2_conf_files,
+       .name                   = "grub2",
+       .method                 = CONF_METHOD_LOCAL_FILE,
+       .parse                  = grub2_parse,
+       .filenames              = grub2_conf_files,
+       .resolve_resource       = resolve_devpath_resource,
 };
 
 register_parser(grub2_parser);