grub-devel
[Top][All Lists]
Advanced

[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
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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