From: Andrei Borzenkov <arvidjaar@gmail.com>
To: "Vladimir 'phcoder' Serbinenko" <phcoder@gmail.com>
Cc: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Parse commandline in grub-xen
Date: Mon, 11 May 2015 19:52:40 +0300 [thread overview]
Message-ID: <20150511195240.53084942@opensuse.site> (raw)
In-Reply-To: <CAEaD8JMa+HvxgNkauHsCFe5-8shZOf+reXPd1C5sOcpeOJpszw@mail.gmail.com>
В Mon, 11 May 2015 14:55:34 +0200
"Vladimir 'phcoder' Serbinenko" <phcoder@gmail.com> пишет:
> On May 11, 2015 2:04 PM, "Andrei Borzenkov" <arvidjaar@gmail.com> wrote:
> >
> > В Mon, 11 May 2015 13:51:48 +0200
> > Olaf Hering <olaf@aepfle.de> пишет:
> >
> > > On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote:
> > >
> > > >
> > > > On May 11, 2015 1:23 PM, "Olaf Hering" <olaf@aepfle.de> wrote:
> > > > >
> > > > > On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote:
> > > > >
> > > > > > Do you really own all those installs to be able to speak on
> behalf of all
> > > > of
> > > > > > them?
> > > > >
> > > > > Since there is zero upstream support for anything regarding grub xen
> > > > > distros are forced to provide their own grub-xen binary for dom0.
> This
> > > > > includes at least some script to do something useful within the very
> > > > > first grub-xen. So in this sense its up to whoever creates such dom0
> > > > > binary to handle variables as needed, and document the implemented
> > > > > features.
> > > > >
> > > > And your point is?
> > >
> > > That this patch gets in as is?
> > >
> > > How do you envison a way to select a boot device, or set debug=all or
> > > whatever a script may interpret?
> >
> > Either by allowing ${grub.arg.XXX} (not sure if current grammar accepts
> > it) or by adding getarg command, something like
> >
> I prefer the former. But probably fwarg. Would be a better prefix. This way
> one can do:
> extra="grub.root=xvda1"
> And then get it as fwarg.grub.root whereas root for Linux would be
> fwarg.root and thus avoiding any conflict
Using it as variable name means change to parser with possible side
effects; also it means it will go into core for every platform, even if
platform itself does not support such variable passing, increasing its
size. Having it as external command does not require any core changes,
will be used only when needed and could be modeled after getopt e.g.
allowing loop over arguments.
> > getarg --name debug --set debug
> >
> > You do not control what arguments grub gets - end use (admin) controls
> > it. You cannot force end user to actually strictly comply with what you
> > expect. As example, grub.cfg you recently submitted has
> >
> > if [ -n "hddev" ]
> >
> > without initializing it first. So administrator setting this variable
> > will unintentionally change behavior of script.
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2015-05-11 16:52 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 9:28 [PATCH] Parse commandline in grub-xen Olaf Hering
2015-05-11 9:33 ` Vladimir 'phcoder' Serbinenko
2015-05-11 9:43 ` Olaf Hering
2015-05-11 10:29 ` Andrei Borzenkov
2015-05-11 10:41 ` Olaf Hering
2015-05-11 10:48 ` Vladimir 'phcoder' Serbinenko
2015-05-11 11:01 ` Olaf Hering
2015-05-11 11:24 ` Vladimir 'phcoder' Serbinenko
2015-05-11 11:51 ` Olaf Hering
2015-05-11 12:02 ` Vladimir 'phcoder' Serbinenko
2015-05-11 12:06 ` Olaf Hering
2015-05-11 12:03 ` Andrei Borzenkov
2015-05-11 12:15 ` Olaf Hering
2015-05-11 12:53 ` Vladimir 'phcoder' Serbinenko
2015-05-11 13:34 ` Olaf Hering
2015-05-11 13:43 ` Vladimir 'phcoder' Serbinenko
2015-05-11 16:53 ` Andrei Borzenkov
2015-05-11 17:08 ` Olaf Hering
2015-05-11 17:12 ` Vladimir 'phcoder' Serbinenko
2015-05-12 8:06 ` Olaf Hering
2015-05-12 8:48 ` Vladimir 'phcoder' Serbinenko
2015-05-12 9:09 ` Olaf Hering
2015-05-12 9:42 ` Vladimir 'phcoder' Serbinenko
2015-05-11 12:55 ` Vladimir 'phcoder' Serbinenko
2015-05-11 16:52 ` Andrei Borzenkov [this message]
[not found] ` <CAEaD8JOJw7sGD2SHdnnsWR8FFExesfg-892ZjxwPPqVMNCqMfg@mail.gmail.com>
2015-05-11 18:45 ` Andrei Borzenkov
2015-05-11 18:49 ` Vladimir 'phcoder' Serbinenko
2015-05-11 12:01 ` Michael Chang
2015-05-12 4:16 ` Andrei Borzenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150511195240.53084942@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
--cc=phcoder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.