All of lore.kernel.org
 help / color / mirror / Atom feed
* avoiding quotes in kernel cmdline
@ 2020-03-13 11:02 Olaf Hering
  2020-03-13 11:59 ` Daniel Kiper
  0 siblings, 1 reply; 8+ messages in thread
From: Olaf Hering @ 2020-03-13 11:02 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

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 #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-18 11:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 11:02 avoiding quotes in kernel cmdline Olaf Hering
2020-03-13 11:59 ` Daniel Kiper
2020-03-13 12:32   ` Olaf Hering
2020-03-13 14:07     ` Daniel Kiper
2020-03-13 14:20       ` Olaf Hering
2020-03-13 14:26         ` Daniel Kiper
2020-03-13 14:47           ` Olaf Hering
2020-03-18 11:14           ` Olaf Hering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.