From: Brett Grandbois Date: Mon, 5 Feb 2018 20:40:31 +0000 (+1000) Subject: grub2/grub2-parser: accept no whitespace in grub menuentry X-Git-Tag: v1.7.0~10 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=a80b3cac1053c9357ac126f2c0d58c2cf99241ae;ds=sidebyside grub2/grub2-parser: accept no whitespace in grub menuentry The Yocto wic grub support will generate a grub.cfg with no whitespace between the ending quote of the menuentry label and the opening bracket. There doesn't seem to be anything in the specification that this is illegal so accept it here. Signed-off-by: Brett Grandbois Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/discover/grub2/grub2-parser.y b/discover/grub2/grub2-parser.y index 598f0fe..527a61c 100644 --- a/discover/grub2/grub2-parser.y +++ b/discover/grub2/grub2-parser.y @@ -122,7 +122,7 @@ statement: { | "function" word delim '{' statements '}' { $$ = create_statement_function(parser, $2, $5); } - | "menuentry" words delim + | "menuentry" words delim0 '{' statements '}' { $$ = create_statement_menuentry(parser, $2, $5); }