With code like this, the resulting kernel cmdline has backslashes before either 
' or ".
I think var="\"str\"" or var="'str'" has to be used to place either " or ' into 
the variable.
How can I avoid the backslash in the kernel cmdline?

udev_rule="udev.rule=\"mac=${net_default_mac},name=uplink\""
udev_rule="udev.rule='mac=${net_default_mac},name=uplink'"
cmdline="${udev_rule} install=${install} start_shell linemode=1 
console=ttyS0,115200"
menuentry "boot" {
 linux  (http,${ip})/path/to/linux ${cmdline}
 initrd (http,${ip})/path/to/initrd
}

Olaf

Attachment: pgplerxp9Snrp.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