[Top][All Lists]

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

Re: [PATCH] pass kernel command line as verbatim

From: Michael Chang
Subject: Re: [PATCH] pass kernel command line as verbatim
Date: Wed, 18 Apr 2018 15:07:15 +0800
User-agent: NeoMutt/20170421 (1.8.2)

On Tue, Apr 17, 2018 at 06:37:06PM +0200, Daniel Kiper wrote:
> On Wed, Apr 11, 2018 at 05:17:03PM +0800, Michael Chang wrote:
> > And this bug report seems relevant ..
> >
> >
> >
> > On Wed, Apr 11, 2018 at 04:58:54PM +0800, Michael Chang wrote:
> > > The command line has been processed by grub shell, then the result is 
> > > expected
> > > to be passed to kernel command line as verbatim according to the grub 
> > > manual
> > > [1][2].
> > >
> > > This patch removes extra escape character added as it helps nothing but 
> > > only
> > > creates trouble as you want them to be literal. Besides the surrounding
> > > double-quotes added is kept as it used to protect space.
> CC-ing Vladmir.
> Hmmm... Have you tested this patch on all platforms supported by GRUB2?

AFAICS, it affects boot protocols of which grub supports in commands like
linux, multiboot, xen_hypervisor and so on. Non of them will intepret escape
sequence and are pretty straightforward in composition -- In general, use space
to delimit options and quote the options by double quotes once they contain any

> I understand that current behavior is not accepted on some but I have
> a feeling that somebody make it work in that way due to some reason.
> Sadly I cannot find anything about that in git log. So, I have to think
> how to cope with that. Or...

As a side note, we had a down stream bug report that udev generates symlink
names containing '\' character, and with the current grub command processing
it's never possible to use those symlinks as kernel command line option, as the
character is either stripped or doubled.


> Vladmir, do you know why command line is processed in that way?
> Daniel

reply via email to

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