[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoiding quotes in kernel cmdline
From: |
Daniel Kiper |
Subject: |
Re: avoiding quotes in kernel cmdline |
Date: |
Fri, 13 Mar 2020 15:07:57 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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 <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
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