[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GITGRUB] Support PXE option and new command pxecfg
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
Re: [GITGRUB] Support PXE option and new command pxecfg |
Date: |
Fri, 16 Oct 2009 17:26:22 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090701) |
Hello. Could you send this as a patch?
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?
> 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)
> Here is an example config file:
>
> pxe {
> ip {
> 192 {
> 168.2 {
> command = "echo ip 192.168.2.*"
> }
>
> 169 {
> command = "echo ip 192.169.*.*"
> }
>
> command = "echo ip 192.*.*.*"
> }
> }
>
> mac {
> 00-0c-29-1a {
> command = "echo mac 00-0c-29-1a-*-*"
> }
>
> command = "echo mac *-*-*-*-*-*"
> }
> }
>
> The config file should be self-explaining, you can use \n to specify
> multiple line of commands:
>
> command = "linux /vmlinuz\ninitrd /initrd\nboot"
>
> Source is at http://github.com/bean123/grub/, master branch.
>
>
--
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
- [GITGRUB] Support PXE option and new command pxecfg, Bean, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg,
Vladimir 'phcoder' Serbinenko <=
- Re: [GITGRUB] Support PXE option and new command pxecfg, Bean, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Vladimir 'phcoder' Serbinenko, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Bean, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Vladimir 'phcoder' Serbinenko, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Felix Zielcke, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Robert Millan, 2009/10/16
- Re: [GITGRUB] Support PXE option and new command pxecfg, Bean, 2009/10/19
- Re: [GITGRUB] Support PXE option and new command pxecfg, Robert Millan, 2009/10/20
- Re: [GITGRUB] Support PXE option and new command pxecfg, Bean, 2009/10/20
Re: [GITGRUB] Support PXE option and new command pxecfg, Robert Millan, 2009/10/16