From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MyKua-0007BV-7r for mharc-grub-devel@gnu.org; Thu, 15 Oct 2009 03:38:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyKuY-00079q-PY for grub-devel@gnu.org; Thu, 15 Oct 2009 03:38:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyKuU-00076E-Il for grub-devel@gnu.org; Thu, 15 Oct 2009 03:38:10 -0400 Received: from [199.232.76.173] (port=43705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyKuU-00076A-Fu for grub-devel@gnu.org; Thu, 15 Oct 2009 03:38:06 -0400 Received: from moutng.kundenserver.de ([212.227.126.177]:64652) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyKuT-0002bU-Ry for grub-devel@gnu.org; Thu, 15 Oct 2009 03:38:06 -0400 Received: from [85.180.4.175] (e180004175.adsl.alicedsl.de [85.180.4.175]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MP3gp-1MsY993lh9-006Q2g; Thu, 15 Oct 2009 09:38:01 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Oct 2009 09:38:00 +0200 Message-Id: <1255592280.3243.3.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V01U2FsdGVkX18lvsJNH96DrC4mQaGonm9ROwFn/D32mgYHXJ+ eIZMqP9ftgsG+l3fKadxL20WnIai07TZ8IvjbU2GvSFt6oZsXT Iu2DH6sjXDXNpdQseTt6Q== 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 07:38:11 -0000 Am Mittwoch, den 14.10.2009, 23:53 -0700 schrieb Seth Goldberg: > Hi, >=20 > That's actually not sufficient -- we need the entire DHCPACK to be pas= sed=20 > (somehow) to the loading kernel. I've discussed this a bit with phcoder,= and=20 > he suggested adding another member to the multiboot structure off of whic= h we=20 > can hang the DHCPACK packet. The environment variables may also have val= ue,=20 > for other OSes that don't use multiboot. >=20 > --S >=20 > Quoting Ale=C5=A1 Kapica, who wrote the following on Thu, 15 Oct 2009: >=20 > > Could I ask you for apply patch from attachment on pxecmd.c in grub2, p= lease?=20 > > It's adding an option -s to the command pxe, which do make possible set= IP=20 > > addresses of the server and the client machine, got from PXE, among gru= b2=20 > > enviroment variables. > > DHCP gives IP according to MAC address, and we use it to identify the c= lient=20 > > 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. 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