summaryrefslogtreecommitdiffstats
path: root/discover/grub2-parser.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-05-17 15:11:10 +0800
committerGeoff Levand <geoff@infradead.org>2013-05-17 17:43:54 +0800
commit32f08e95ad23521e0d68fef46dcbfc7b99dda752 (patch)
tree5ae0828d65acd99ccd6fd7e9a6a66eade55d0f10 /discover/grub2-parser.c
parentc019c1cea9c12aff4aa945414bb2841d085d5b10 (diff)
downloadtalos-petitboot-32f08e95ad23521e0d68fef46dcbfc7b99dda752.tar.gz
talos-petitboot-32f08e95ad23521e0d68fef46dcbfc7b99dda752.zip
parser/grub2: Add parse for linux16
Ubuntu uses the linux16 symbol in thier conf files for memory test entries. Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/grub2-parser.c')
-rw-r--r--discover/grub2-parser.c3
1 files changed, 2 insertions, 1 deletions
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
OpenPOWER on IntegriCloud