Re: grub2pxe give a specific cfg file per host

2009-10-15 Thread Yoann Moulin
I'm testing grub2pxe and I'd like to know if it's possible to give different configfile (diff that grub.cfg) per host/mac address such as pxelinux does with mac address detection. option-150 was used for that before but seem to not be implemented with grub2 I'd like to do something like

Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Aleš Kapica
Could I ask you for apply patch from attachment on pxecmd.c in grub2, please? It's adding an option -s to the command pxe, which do make possible set IP addresses of the server and the client machine, got from PXE, among grub2 enviroment variables. DHCP gives IP according to MAC address, and

Re: grub2pxe give a specific cfg file per host

2009-10-15 Thread Bean
On Thu, Oct 15, 2009 at 2:05 PM, Yoann Moulin informati...@mistur.org wrote: I'm testing grub2pxe and I'd like to know if it's possible to give different configfile (diff that grub.cfg) per host/mac address such as pxelinux does with mac address detection. option-150 was used for that before

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Felix Zielcke
Am Mittwoch, den 14.10.2009, 23:53 -0700 schrieb Seth Goldberg: Hi, That's actually not sufficient -- we need the entire DHCPACK to be passed (somehow) to the loading kernel. I've discussed this a bit with phcoder, and he suggested adding another member to the multiboot structure off

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Seth Goldberg
Quoting Felix Zielcke, who wrote the following on Thu, 15 Oct 2009: Am Mittwoch, den 14.10.2009, 23:53 -0700 schrieb Seth Goldberg: Hi, That's actually not sufficient -- we need the entire DHCPACK to be passed (somehow) to the loading kernel. I've discussed this a bit with phcoder, and

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Vladimir 'phcoder' Serbinenko
Seth Goldberg wrote: Quoting Felix Zielcke, who wrote the following on Thu, 15 Oct 2009: Am Mittwoch, den 14.10.2009, 23:53 -0700 schrieb Seth Goldberg: Hi, That's actually not sufficient -- we need the entire DHCPACK to be passed (somehow) to the loading kernel. I've discussed this

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Felix Zielcke
Am Donnerstag, den 15.10.2009, 00:51 -0700 schrieb Seth Goldberg: Quoting Felix Zielcke, who wrote the following on Thu, 15 Oct 2009: Am Mittwoch, den 14.10.2009, 23:53 -0700 schrieb Seth Goldberg: Hi, That's actually not sufficient -- we need the entire DHCPACK to be passed

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Yoann Moulin
Having the Client IP avaible inside grub.cfg might be useful for some. Then you could have one grub.cfg for all your machines and if one or a small number of it needs some special stuff, you could just check for the IP inside the grub.cfg. Then you don't need to use a seperate one for them.

Re: Patch for export IP addresses from PXE into grub2 enviroment variables

2009-10-15 Thread Seth Goldberg
Having the Client IP avaible inside grub.cfg might be useful for some. Then you could have one grub.cfg for all your machines and if one or a small number of it needs some special stuff, you could just check for the IP inside the grub.cfg. Then you don't need to use a seperate one for them.

[BUGFIX] Fix rescue parser

2009-10-15 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index b0864a9..55bdc92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-10-15 Vladimir Serbinenko phco...@gmail.com + * kern/parser.c

Re: [bug #27695] parser.sh ignores the closing quote when preceeded by a variable

2009-10-15 Thread Vladimir 'phcoder' Serbinenko
Andreas Born wrote: URL: http://savannah.gnu.org/bugs/?27695 Summary: parser.sh ignores the closing quote when preceeded by a variable Attached patch should fix this bug Project: GNU GRUB Submitted by: shador Submitted on: Di

Re: Handling multiple cores by GRUB

2009-10-15 Thread James Courtier-Dutton
2009/10/14 Robert Millan r...@aybabtu.com: But I don't think this would be desireable except in very specific situations, and I'm not sure which ones.  Perhaps loading a compressed file would be an example (so that uncompression and disk poll can be done in parallel). Not specifically

[PATCH] create variables when exporting them

2009-10-15 Thread Andreas Born
This patch changes grub_env_export to create variables with empty value, if necessary. This makes it possible to export variables before actually assigning them any value and is the way bash behaves. Thanks Andreas ChangeLog: 2009-10-15 Andreas Born futur.a...@googlemail.com *

Re: [PATCH] create variables when exporting them

2009-10-15 Thread Colin Watson
On Thu, Oct 15, 2009 at 08:40:37PM +0200, Andreas Born wrote: This patch changes grub_env_export to create variables with empty value, if necessary. This makes it possible to export variables before actually assigning them any value and is the way bash behaves. This makes sense to me

Re: [PATCH] create variables when exporting them

2009-10-15 Thread Andreas Born
Here you go: ChangeLog: 2009-10-15 Andreas Born futur.a...@googlemail.com * kern/env.c (grub_env_export): Create nonexistent variables before exporting. The mixed indentation (tabs and spaces) in kern/env.c was a bit confusing. Andreas Colin Watson schrieb: On Thu, Oct 15, 2009 at

Re: powerpc/sparc problems

2009-10-15 Thread Pavel Roskin
On Thu, 2009-10-15 at 13:58 +0200, Vladimir 'phcoder' Serbinenko wrote: The methods discussed in this thread are good but aren't for release. So I just reverted Pavel's commit My cross-build for sparc64 fails now: __bswapsi2 in fat is not defined This can be traced to the following part of