[Top][All Lists]

[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 15:47:30 +0100

Am Fri, 13 Mar 2020 15:26:33 +0100
schrieb Daniel Kiper <address@hidden>:

> Adding Vladimir. There is a chance that he knows why it was added...

I just checked why this did not show up earlier.

With 20190718T143316.4e75b2ae3 and command "linux ($root)/file var='str'" 
nothing is escaped.
The command "linux ($root)/boot/vmlinuz ${cmdline} var="str" var='str'" from my 
earlier example results in this cmdline:

BOOT_IMAGE=(hd0,msdos2)/boot/vmlinuz \"str1\" \'str2\' console=ttyS0,115200 
quiet var=str var=str

I just noticed now that in the production code I use since months the single 
quotes disappeared, and the consumers of /proc/cmdline do not care about this 

So in the end I may just remove the existing single quote from my code any 
everything should work fine for the consumers of /proc/cmdline.


Attachment: pgpTWh0CF6Z_d.pgp
Description: Digitale Signatur von OpenPGP

reply via email to

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