[PATCH v1 0/2] Fix cfg file parsing and command line parsing

2025-05-18 Thread Shreenidhi Shedi
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 pa

[PATCH v1 2/2] cmdline: fix command line parsing in grub

2025-05-18 Thread Shreenidhi Shedi
From: Shreenidhi Shedi Previously, the command line construction function (grub_create_loader_cmdline) escaped single and double quotes, which is unnecessary and potentially problematic since the kernel command line handler does not support escaped quotes. This patch removes the escaping of these

[PATCH v1 1/2] envblk: ignore empty new lines while parsing env files

2025-05-18 Thread Shreenidhi Shedi
From: Shreenidhi Shedi Environment files may contain empty lines, which should be ignored during parsing. Currently, these lines are not skipped and resulting in incorrect behavior. This patch adds a check to skip empty lines along with those starting with `#'. Signed-off-by: Shreenidhi Shedi R

[PATCH 1/2] include/efi/api: Complete UEFI status codes

2025-05-18 Thread khaalid cali
From: khaalid As the the current spec UEFI 2.11 add remaining status codes. The first patch set of this series accounts for. Signed-off-by: Khalid Ali --- include/grub/efi/api.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h index b686

[RFC PATCH 0/2] kern/efi: Make centralized UEFI error message printer

2025-05-18 Thread khaalid cali
From: khaalid This RFC patch introduces a UEFI error message printer that translates UEFI status codes from hexadecimal values into human-readable strings. The idea is inspired by the GNU C Library's "perror()" function, which translates "errno" values into descriptive error messages. Similar

[RFC PATCH 2/2] include/efi/efi: Add the prototype

2025-05-18 Thread khaalid cali
From: khaalid The function prototype. Signed-off-by: khaalid --- include/grub/efi/efi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/grub/efi/efi.h b/include/grub/efi/efi.h index a5cd99e5a..3c38e2834 100644 --- a/include/grub/efi/efi.h +++ b/include/grub/efi/efi.h @@ -115,6 +