From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MyLGq-00005K-4G for mharc-grub-devel@gnu.org; Thu, 15 Oct 2009 04:01:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyLGo-0008WQ-NH for grub-devel@gnu.org; Thu, 15 Oct 2009 04:01:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyLGj-0008UP-Mw for grub-devel@gnu.org; Thu, 15 Oct 2009 04:01:10 -0400 Received: from [199.232.76.173] (port=58449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyLGj-0008UG-ED for grub-devel@gnu.org; Thu, 15 Oct 2009 04:01:05 -0400 Received: from ey-out-1920.google.com ([74.125.78.149]:7330) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyLGi-000647-R0 for grub-devel@gnu.org; Thu, 15 Oct 2009 04:01:05 -0400 Received: by ey-out-1920.google.com with SMTP id 3so586168eyh.34 for ; Thu, 15 Oct 2009 01:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=fU96DUlUsyj8gc98oFYTYQroHNslgJuyA6GLY0QORUc=; b=ZpRMyL1kn5mfWK9S4wZ4XJh8VkW+S1SgIVr4OAiahH3L6HtYwNVR2UhsM7W3BuOuDo ZySBcS13Ys6z4QmLc8jJ9+1ZYJ7GlQKfdJ5p3P/rtUBYQggttmghFc+BKCddhs95vU/t dbHqLWSJkyE7M9olRFqizPgKHSEu1DRCY4gN0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=q1RaLEI/Kh4DKPfzxpF1CswOk2p5o+nCzkkRwD/qL4s+J0tA656HcXlqbhxrDtjSII qecqkCgHQQEDQTq++abtnVO9aWHG1OMX6k0FfVgovudVph6M1H+7HvIF/zn2K9QJxbs5 2ZmJTtbvJ3DKi76fG5YHxWUkfjEwla2nxU+04= Received: by 10.211.128.5 with SMTP id f5mr11565365ebn.85.1255593662469; Thu, 15 Oct 2009 01:01:02 -0700 (PDT) Received: from debian.bg45.phnet (gprs01.swisscom-mobile.ch [193.247.250.1]) by mx.google.com with ESMTPS id 5sm2586192eyh.9.2009.10.15.01.01.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Oct 2009 01:01:01 -0700 (PDT) Message-ID: <4AD6D6B7.5010500@gmail.com> Date: Thu, 15 Oct 2009 10:00:55 +0200 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <1255592280.3243.3.camel@fz.local> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:01:11 -0000 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 a bit with >>> phcoder, and >>> he suggested adding another member to the multiboot structure off of >>> which we >>> can hang the DHCPACK packet. The environment variables may also >>> have value, >>> for other OSes that don't use multiboot. >>> >>> --S >>> >>> Quoting Aleš 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 >>>> 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 we use it to identify >>>> the client >>>> station by IP address. >>>> >>>> Thanks a lot, with regards Aleš 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. > > Please, no. That's terribly non-scalable for a large number of > clients (enterprise deployments). We definitely need a solution that > includes the configuration file to use as a DHCP option. > One doesn't prevent another. And then it will be up to administrator to choose the way they want their system to work > --S > ------------------------------------------------------------------------ > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git