From 32f08e95ad23521e0d68fef46dcbfc7b99dda752 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Fri, 17 May 2013 15:11:10 +0800 Subject: [PATCH] parser/grub2: Add parse for linux16 Ubuntu uses the linux16 symbol in thier conf files for memory test entries. Signed-off-by: Geoff Levand --- discover/grub2-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discover/grub2-parser.c b/discover/grub2-parser.c index bd08ec0..63e6542 100644 --- a/discover/grub2-parser.c +++ b/discover/grub2-parser.c @@ -161,7 +161,7 @@ static void grub2_process_pair(struct conf_context *conf, const char *name, return; } - if (streq(name, "linux")) { + if (streq(name, "linux") || streq(name, "linux16")) { char *sep; sep = strchr(value, ' '); @@ -240,6 +240,7 @@ static const char *const grub2_conf_files[] = { static const char *grub2_known_names[] = { "menuentry", "linux", + "linux16", "initrd", "search", NULL -- 2.39.2