On Fri, Mar 13, 2020 at 01:32:12PM +0100, Olaf Hering wrote: > Am Fri, 13 Mar 2020 12:59:32 +0100 > schrieb Daniel Kiper <dki...@net-space.pl>: > > > Both var="\"str\"" and var="'str'" should work. Does not they? Do you > > still get backslashes in ${cmdline}? > > Yes. I think the issue might be the "final expansion" in the menuentry and/or > linux command? > > # grub.cfg > insmod part_msdos > insmod ext2 > serial --unit=0 --speed=115200 > terminal_input serial > terminal_output serial > > var="\"str\"" > cmdline="${var} console=ttyS0,115200 quiet" > menuentry 'ROOT' { > search --no-floppy --label --set=root ROOT > linux ($root)/boot/vmlinuz ${cmdline} > initrd ($root)/boot/initrd > } > > BOOT_IMAGE=(hd0,msdos2)/boot/vmlinuz \"str\" console=ttyS0,115200 quiet
Hmmm... Strange... When I was testing similar thing some time ago it worked without any issue. However, IIRC, I was just testing how it works with the echo command. Anyway, could you check what is going on and prepare a patch if needed? Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel