Closed hmeine closed 5 years ago
I suspect warning()
to write to stderr, so I guess this is not the right fix yet, since the main output is on stdout and misses newlines. However, it looks good in the terminal, and finally I got the desired output for all regular entries.
I just checked; warning()
does not write to stderr, so my solution is better than I assumed.
I think this looks reasonable.
Also, please open a separate issue related to the entries that couldn't be parsed. Of course you did uncover a real issue with this, and that real issue should be fixed.
I've pushed this, with some minor changes because it landed in my tree after 8ec3e9dedb3. Feel free to re-open if I'm somehow screwed it up ;)
This allowed me to inspect EFI boot menu entries despite the problem discussed in https://github.com/rhboot/efibootmgr/issues/43#issuecomment-354663183 .
In fact, the problem stems from entries like
Boot003_BbsIndex
, not from the regular menu entries, whatever these_BbsIndex
ones are.