[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] Accept environment variables on the command line for Xen
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: [PATCH 2/4] Accept environment variables on the command line for Xen. |
Date: |
Thu, 12 Dec 2013 18:58:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
On 12.12.2013 18:12, Andrey Borzenkov wrote:
> В Thu, 12 Dec 2013 17:13:13 +0100
> "Vladimir 'phcoder' Serbinenko" <address@hidden> пишет:
>
>> - Many platforms add their own command line arguments even if user didn't
>> ask for it. Those shouldn't interfere. In your patch root=sda1 from xen
>> will either be lost or will clobber GRUB root.
>
> My be we could adopt current Linux convention and prefix variables for
> GRUB with grub.foo=xxx (stripping "grub." prefix). I do not know whether
> it could have compatibility implications for current code though.
>
> The reasoning is, it would allow overwriting variables very early
> without need for scripting that is available only after normal is
> loaded.
>
My response was terse and it seems that you misunderstood it, sorry. I
meant more along the lines that define:
cmdline.# as number of arguments
cmdline.1,..., cmdline.N are the raw arguments
cmdline.var.<name> are parsed variants of <name>=<value>
E.g. If the commandline is "root=/dev/sda1 ro"
Then
cmdline.#=2
cmdline.1=root=/dev/sda1
cmdline.2=ro
cmdline.var.root=/dev/sda1
Would that be satisfactory for your usecases? What are the usecases?
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
signature.asc
Description: OpenPGP digital signature
[PATCH 2/4] Accept environment variables on the command line for Xen., Colin Watson, 2013/12/12
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen., Andrey Borzenkov, 2013/12/12
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen., Vladimir 'phcoder' Serbinenko, 2013/12/12
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen., Andrey Borzenkov, 2013/12/12
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen.,
Vladimir 'φ-coder/phcoder' Serbinenko <=
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen., Colin Watson, 2013/12/12
- Re: [PATCH 2/4] Accept environment variables on the command line for Xen., Vladimir 'φ-coder/phcoder' Serbinenko, 2013/12/12
[PATCH 3/4] Build grub.xen., Colin Watson, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Vladimir 'phcoder' Serbinenko, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Colin Watson, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Vladimir 'phcoder' Serbinenko, 2013/12/12
- Fwd: Re: [PATCH 3/4] Build grub.xen., Vladimir 'phcoder' Serbinenko, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Colin Watson, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Andrey Borzenkov, 2013/12/12
- Re: [PATCH 3/4] Build grub.xen., Vladimir 'φ-coder/phcoder' Serbinenko, 2013/12/12