On Mon, May 19, 2025 at 11:49:55PM +0530, Shreenidhi Shedi wrote:
> From: Shreenidhi Shedi <shreenidhi.sh...@broadcom.com>
>
> 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 characters, ensuring that the constructed command line is
> passed to the kernel as intended.
>
> For example:
>
> In /boot/grub/grub.cfg
> ...
> set user_cmdline="dyndbg='+p; func smp_callin -p'"
> ...
> menuentry "Photon" {
>   linux /boot/$photon_linux root=$rootpartition $photon_cmdline 
> $systemd_cmdline $user_cmdline
>   if [ -f /boot/$photon_initrd ]; then
>     initrd /boot/$photon_initrd
>   fi
> }
> ...
>
> Post reboot,
>
> $ cat /proc/cmdline
> ... dyndbg=\'+p; func smp_callin -p\'

AFIACT Vladimir has more complete fix for this issue. I asked him to
post it once again...

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to