Skip to content

Fix cfg file parsing and command line parsing

Shreenidhi Shedi grub-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Handle '\r' along with '\n' in envblk

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2envblk: ignore empty new lines while parsing env filesgrub-core/lib/envblk.c+1 -11 reply
2/2cmdline: fix command line parsing in grubgrub-core/lib/cmdline.c+3 -146 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlexey MakhalovDaniel Kiper
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix cfg file parsing and command line parsing

Hi GRUB Developers,

This patch series contains two fixes to improve how GRUB handles environment files and constructs the kernel command line, these issues were reported by PhotonOS customers.

The first patch ensures that empty lines in environment files are skipped during parsing.

The second patch removes unnecessary escaping of quotes in the constructed command line, as the Linux kernel does not support escaped quotes.

Thanks for your time and consideration.

v0 changes:
- Initial revision.
- https://lists.gnu.org/archive/html/grub-devel/2025-05/msg00085.html

v1 changes:
- Added cover leter
- Improved commit message as suggested by Daniel Kiper

v2 changes:
- Handle '\r' along with '\n' in envblk

--
Shreenidhi Shedi

--
2.49.0

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel