diff options
author | Brett Grandbois <brett.grandbois@opengear.com> | 2018-02-06 06:40:31 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-02-08 08:01:42 +1100 |
commit | a80b3cac1053c9357ac126f2c0d58c2cf99241ae (patch) | |
tree | ce41f2e9d65ea9e2f80bf6ece8eed9b20070c7be /discover/grub2/grub2-parser.y | |
parent | b63b778e7feb4d4d6753dd890077659f8a62a743 (diff) | |
download | talos-petitboot-a80b3cac1053c9357ac126f2c0d58c2cf99241ae.tar.gz talos-petitboot-a80b3cac1053c9357ac126f2c0d58c2cf99241ae.zip |
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 <brett.grandbois@opengear.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/grub2/grub2-parser.y')
-rw-r--r-- | discover/grub2/grub2-parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |