Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MyLLL-0003WO-7R for mharc-grub-devel@gnu.org; Thu, 15 Oct 2009 04:05:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyLLI-0003Sw-G1 for grub-devel@gnu.org; Thu, 15 Oct 2009 04:05:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyLLD-0003Ji-B1 for grub-devel@gnu.org; Thu, 15 Oct 2009 04:05:47 -0400 Received: from [199.232.76.173] (port=51736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyLLD-0003JN-3m for grub-devel@gnu.org; Thu, 15 Oct 2009 04:05:43 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:59939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyLLC-0006il-Cv for grub-devel@gnu.org; Thu, 15 Oct 2009 04:05:42 -0400 Received: from [85.180.4.175] (e180004175.adsl.alicedsl.de [85.180.4.175]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LkBS6-1MQfDb05xi-00bxu7; Thu, 15 Oct 2009 10:05:41 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: References: <1255592280.3243.3.camel@fz.local> Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Oct 2009 10:05:40 +0200 Message-Id: <1255593940.3243.6.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V01U2FsdGVkX1+hSvNGIzBrLhplCw1ZPjOw29/XXfSBpTM9N80 9Z8WRUFRZjbBIJHjDPNlYzkDEVPyS9AewaW3hr4UZ2mp8hycnL 4aHJGzqGs6kUuW7n7J42A/UyRNv2Y+W X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Patch for export IP addresses from PXE into grub2 enviroment variables X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 08:05:49 -0000 Am Donnerstag, den 15.10.2009, 00:51 -0700 schrieb Seth Goldberg: >=20 > Quoting Felix Zielcke, who wrote the following on Thu, 15 Oct 2009: >=20 > > 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 phcod= er, and > >> he suggested adding another member to the multiboot structure off of w= hich we > >> can hang the DHCPACK packet. The environment variables may also have = value, > >> for other OSes that don't use multiboot. > >> > >> --S > >> > >> Quoting Ale=C5=A1 Kapica, who wrote the following on Thu, 15 Oct 2009: > >> > >>> 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 s= et IP > >>> addresses of the server and the client machine, got from PXE, among g= rub2 > >>> enviroment variables. > >>> DHCP gives IP according to MAC address, and we use it to identify the= client > >>> station by IP address. > >>> > >>> Thanks a lot, with regards Ale=C5=A1 Kapica > >>> > > > > 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. >=20 > Please, no. That's terribly non-scalable for a large number of clients= =20 > (enterprise deployments). We definitely need a solution that includes th= e=20 > configuration file to use as a DHCP option. Both methods should coexist fine. I didn't meant to implement only this and not the option-150. I just thought that this method might have an advantage for some people over the other. As I said as last sentence >But maybe this isn't that useful if option-150 gets implemented which >Yoann requested. --=20 Felix Zielcke Proud Debian Maintainer and GNU GRUB developer