how to investigate a syntax error reported in pb-discover.log ?

Geoff Levand geoff at infradead.org
Thu Jul 16 06:25:53 AEST 2020


On 7/15/20 9:44 AM, Normand wrote:
> H there,
> 
> I have a pending failure tracked by https://bugzilla.opensuse.org/show_bug.cgi?id=1174166
> 
> where petitboot is detecting a syntax error, I do not know how to continue investigation, any suggestion ?
> 
> the extract of pb-discover.log is:
> ===
> [11:49:32] Snapshot successfully created for sda2
> [11:49:32] mounting device /dev/sda2 read-only
> [11:49:32] trying parsers for sda2
> [11:49:32] parse error: 241('{'): syntax error, unexpected '{', expecting elif or else or fi
> ===
> 
> 

Hi Normand,

I guess that parse error message is coming from
'discover/grub2/grub2-parser.y, line 173', and says it can't
parse line 241 of your grub.cfg file.

Maybe take a look at grub2-parser.y and your grub.cfg file.

  https://github.com/glevand/petitboot--petitboot/blob/master/discover/grub2/grub2-parser.y#L173

It seems like 'hiddenentry' keyword support might need to
be added to grub2-parser.y.

-Geoff


More information about the Petitboot mailing list