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


Olaf

Attachment: pgpmACEKg7i8u.pgp
Description: Digitale Signatur von OpenPGP

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

Reply via email to