grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: avoiding quotes in kernel cmdline


From: Olaf Hering
Subject: Re: avoiding quotes in kernel cmdline
Date: Fri, 13 Mar 2020 13:32:12 +0100

Am Fri, 13 Mar 2020 12:59:32 +0100
schrieb Daniel Kiper <address@hidden>:

> 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: pgp8o_GPrT971.pgp
Description: Digitale Signatur von OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]