parser/grub2: Add parse for linux16
authorGeoff Levand <geoff@infradead.org>
Fri, 17 May 2013 07:11:10 +0000 (15:11 +0800)
committerGeoff Levand <geoff@infradead.org>
Fri, 17 May 2013 09:43:54 +0000 (17:43 +0800)
Ubuntu uses the linux16 symbol in thier conf files for memory test entries.

Signed-off-by: Geoff Levand <geoff@infradead.org>
discover/grub2-parser.c

index bd08ec0a70c750f90d91f4c609bd427125ceb594..63e6542e6f11b6f1a9fe868b5dfb121f230db0bb 100644 (file)
@@ -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