All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [GITGRUB] Support PXE option and new command pxecfg
Date: Fri, 16 Oct 2009 18:47:47 +0200	[thread overview]
Message-ID: <4AD8A3B3.6030101@gmail.com> (raw)
In-Reply-To: <ca0f59980910160913o32707807ia1b62d3e195adab@mail.gmail.com>

Bean wrote:
> On Fri, Oct 16, 2009 at 11:26 PM, Vladimir 'phcoder' Serbinenko
> <phcoder@gmail.com> wrote:
>   
>> Hello. Could you send this as a patch?
>>     
>
> Hi,
>
> This function depends on my menu branch, it can't be applied to svn
> head, so patch file is not very useful.
>
>   
Could you explain me why PXE depends on menu?
>> Bean wrote:
>>     
>>> Hi,
>>>
>>> Extends pxe command:
>>>
>>> -i (--info)  now shows mac and dhcp options
>>> -e (--export)  export a dhcp option as grub variable, for example:
>>>
>>> pxe -e 150
>>>
>>>
>>>       
>> Why can't this be exported unconditionally on pxe system startup?
>>     
>
> Right, perhaps we can export PXE_IP, PXE_MAC and PXE_150 by default,
> but this function is also useful in case we need to use other string
> option.
>
>   
Is it possible just enumerate all available options and export them to
PXE.<option name> similarly to how we treat FreeBSD environment
>>> Set variable PXE_150 to the value of dhcp option 150, you can then use
>>> command like source to load it:
>>>
>>> source ${PXE_150}
>>>
>>> New command pxecfg, which allows you to run a command based on current ip/mac:
>>>
>>> pxecfg /pxe.txt
>>>
>>>
>>>       
>> What's wrong with standard if? I would prefer to extend "if" if
>> necessary rather than having ad-hoc command for every condition (later
>> is inexpandable)
>>     
>
> IIRC the test command can't compare partial string.
>
>   
We need an improvement to test command then. What about having
test <string> -regexp <regexp>


-- 
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git 




  reply	other threads:[~2009-10-16 16:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16 14:45 [GITGRUB] Support PXE option and new command pxecfg Bean
2009-10-16 15:26 ` Vladimir 'phcoder' Serbinenko
2009-10-16 16:13   ` Bean
2009-10-16 16:47     ` Vladimir 'phcoder' Serbinenko [this message]
2009-10-16 17:20       ` Bean
2009-10-16 17:30         ` Vladimir 'phcoder' Serbinenko
2009-10-16 21:05           ` Felix Zielcke
2009-10-16 21:13           ` Robert Millan
2009-10-19  9:02             ` Bean
2009-10-20 10:21               ` Robert Millan
2009-10-20 10:51                 ` Bean
2009-10-16 18:38 ` Robert Millan

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=4AD8A3B3.6030101@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /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.