Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UapwW-0003RQ-RT for mharc-grub-devel@gnu.org; Fri, 10 May 2013 12:13:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UapwS-0003Jf-D4 for grub-devel@gnu.org; Fri, 10 May 2013 12:13:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UapwO-00079J-RS for grub-devel@gnu.org; Fri, 10 May 2013 12:13:08 -0400 Received: from nm24-vm2.bullet.mail.ne1.yahoo.com ([98.138.91.212]:23018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UapwO-0006vf-LK for grub-devel@gnu.org; Fri, 10 May 2013 12:13:04 -0400 Received: from [98.138.90.56] by nm24.bullet.mail.ne1.yahoo.com with NNFMP; 10 May 2013 16:12:57 -0000 Received: from [98.138.89.245] by tm9.bullet.mail.ne1.yahoo.com with NNFMP; 10 May 2013 16:12:57 -0000 Received: from [127.0.0.1] by omp1059.mail.ne1.yahoo.com with NNFMP; 10 May 2013 16:12:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 719335.97858.bm@omp1059.mail.ne1.yahoo.com Received: (qmail 60271 invoked by uid 60001); 10 May 2013 16:12:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1368202377; bh=PI8DWC2L0CvoA28U56PciUK3rmGDSlK1lDbf0xAVoaQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Dwpu+Uh/KOhIGZFYSEgPVnl+n7QiQ51RgzuHkFzPuPWRr4L4Yt0+EoJkot6vI8nJln1DrkcZb+a1k/kPzbQelKfGux5dbWnVc8QOAp5i/1JlFgsF+CEL8qK1znqgqDpIptPUIcHJy4/gKfGn8+xau9ik2uWQa3Xls44+poiWcS0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=G5zvr9cfywPPBNfcSmd8s0lj4tJF/4aQSNFRzhS2LYEEACPDXHLK3RbhIHLzsAA889uZPVMnxPQ8jtwStu62si6Z2eh/niGPHEk8cjcha+o6geT16g5Wy4BFwGwE2mKddHg/twJ4JthJbcNteAEXgwH/LfVK3T6f8rG9W3zA2gM=; X-YMail-OSG: 8TiHTbUVM1lHS.tb6gqabBrsMv5Yw9fADRVwjgy.e.IRA.A eQt2__MtPd86r8QB2tmYI9ix_i7QtcvVFWuLoSIu0mCpkT5sRC6OdS0CfFy9 IJljBwKsvizOQv7awBfowO81wB3053.Cds62pXDf_h0zu491xrr7.WF7HnM0 8EiSdYTGl.V3b.P0ECZaF_NWAmhbfN5o5ATh8lrPaNycfjc_861aAuapW1nr IhZo2aI2eNvctdAMuLx_ufhyCNc91YjbsOAo0TS8HFT944rFvCtQe7iM_Utk 5c2aUzYn8PvoVhcTt_8WGKTlr5c6EWsx1MwC2xdC9Dh2DxLuafd1Pv6U6GgB wGWMSgSaIFIUdvJJySwuodH9thFwOdfdChRqZwUfxin22nzwSelF469QGy28 ghBW76nuUuPvPn3ZRheDW0i3u2WcOwQFEJIvHF2ISheBDMuaLqz61plh4e2D ZVoDXFD8V_o.EX9DWnDPVuDsSsqqbbt5FUUpYNDUzPeB2eLQBqOFncZylELS 2e402CSfNbsRvnkB30_dvRNbHKocYH57p0X8H2PsPOZ7bhIyXWhQboqb2Yqh 7pxO7alDYhZWCcAjCddXKNM9m5rZhRQYvnqJegvnUefvReWdpxQZUHjb9m_r 6sTySJg8- Received: from [15.203.233.77] by web120202.mail.ne1.yahoo.com via HTTP; Fri, 10 May 2013 09:12:57 PDT X-Rocket-MIMEInfo: 002.001, LS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQoKPiBGcm9tOiBBbmRyZXkgQm9yemVua292IDxhcnZpZGphYXJAZ21haWwuY29tPgo.IFRvOiBSaWdvYmVydG8gQ29ydWpvIDxyY29ydWpvQHlhaG9vLmNvbT4KPiBDYzogImhlbHAtZ3J1YkBnbnUub3JnIiA8aGVscC1ncnViQGdudS5vcmc.OyAiZ3J1Yi1kZXZlbEBnbnUub3JnIiA8Z3J1Yi1kZXZlbEBnbnUub3JnPgo.IFNlbnQ6IFdlZG5lc2RheSwgTWF5IDgsIDIwMTMgMzoyNSBQTQo.IFN1YmplY3Q6IFJlOiBPYnRhaW5pbmcgdGhlIE1BQyBhZGRyZXNzIG8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.141.536 References: <1367240132.58582.YahooMailNeo@web120204.mail.ne1.yahoo.com> <20130501185934.3f2b9c28@opensuse.site> <1368034067.35751.YahooMailNeo@web120203.mail.ne1.yahoo.com> <20130508232529.45088742@opensuse.site> Message-ID: <1368202377.58319.YahooMailNeo@web120202.mail.ne1.yahoo.com> Date: Fri, 10 May 2013 09:12:57 -0700 (PDT) From: Rigoberto Corujo Subject: Re: Obtaining the MAC address of the boot NIC for a PXE boot To: Andrey Borzenkov In-Reply-To: <20130508232529.45088742@opensuse.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 98.138.91.212 Cc: "help-grub@gnu.org" , "grub-devel@gnu.org" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 16:13:11 -0000 ----- Original Message -----=0A=0A> From: Andrey Borzenkov =0A> To: Rigoberto Corujo =0A> Cc: "help-grub@gnu.o= rg" ; "grub-devel@gnu.org" =0A> Sent= : Wednesday, May 8, 2013 3:25 PM=0A> Subject: Re: Obtaining the MAC address= of the boot NIC for a PXE boot=0A> =0A> =D0=92 Wed, 8 May 2013 10:27:47 -0= 700 (PDT)=0A> Rigoberto Corujo =D0=BF=D0=B8=D1=88=D0=B5= =D1=82:=0A> =0A>> =0A>> Thank you very much, Andrey. =C2=A0This worked. = =C2=A0I did have to add the following =0A> lines to "grub-core/Makefile.cor= e.am" to get a "eval.mod" =0A> generated, but I'm sure that it's probably b= ecause I missed an important =0A> step that would have automatically genera= ted it.=0A>> =0A> =0A> In the meantime Vladimir pushed different implementa= tion that provides=0A> net_default_mac:=0A> =0A> `net_default_interface'=0A= > =C2=A0 =C2=A0 Initially set to name of network interface that was used t= o load=0A> =C2=A0 =C2=A0 grub.=C2=A0 Read-write, although setting it affec= ts only interpretation=0A> =C2=A0 =C2=A0 of `net_default_ip' and `net_defa= ult_mac'=0A> =0A> `net_default_ip'=0A> =C2=A0 =C2=A0 The IP address of def= ault interface.=C2=A0 Read-only. This is alias for=0A> =C2=A0 =C2=A0 the `= net_${net_default_interface}_ip'.=0A> =0A> `net_default_mac'=0A> =C2=A0 =C2= =A0 The default interface's MAC address.=C2=A0 Read-only.=C2=A0 This is al= ias=0A> =C2=A0 =C2=A0 for the `net_${net_default_interface}_mac'.=0A> =0A>= Could you verify that it works for you? Also if you would comment on=0A> d= ocumentation in Network section from user's perspective.=0A> =0A> =0A> ____= ___________________________________________=0A> Help-grub mailing list=0A> = Help-grub@gnu.org=0A> https://lists.gnu.org/mailman/listinfo/help-grub=0A> = =0A=0AThank you Andrey. =C2=A0I can confirm that the net_default_interface,= net_default_ip, and net_default_mac variables worked as expected. =C2=A0I = did notice, however, then when I'm in the grub shell and I type "set", thes= e variables show up in the list, but they have no values, which makes it ap= pear as if something is wrong. =C2=A0If I echo the variables, however, I do= see their correct values.=0A=0AAs far as the documentation, I would sugges= t that for the description of net_default_mac, something similar to the fol= lowing text be added:=0A=0AThe net_default_mac variable may be used in your= GRUB configuration file as a substitute for the BOOTIF=3D option that gets appended to the Linux kernel parameter= s by the pxelinux IPAPPEND option.=0A=0AI think most pxelinux users that ar= e switching to GRUB 2 will do a Google search for BOOTIF and IPAPPEND, look= ing to see how to obtain the boot NIC's MAC address with GRUB 2, and having= those two keywords in the documentation would make it easy to find the ans= wer.=0A=0AThank you very much, once again.=0A=0ARigoberto