From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Ub1iA-0006Gr-6c for mharc-grub-devel@gnu.org; Sat, 11 May 2013 00:47:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ub1i7-0006Ei-Sy for grub-devel@gnu.org; Sat, 11 May 2013 00:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ub1i7-0002u0-2U for grub-devel@gnu.org; Sat, 11 May 2013 00:47:07 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:61853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ub1i5-0002sf-2n; Sat, 11 May 2013 00:47:05 -0400 Received: by mail-lb0-f180.google.com with SMTP id v1so4763378lbd.25 for ; Fri, 10 May 2013 21:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=yJauPF67HC9QwCa+UDs/vsTKI5DUo4czomiobYEA/gU=; b=EhgEtNdjNEQeVwqn+rG3Cpp9GUO7RhWblU1dbUCpB9kGLVcdPcftFYJzSA8q1OlU/6 kPT0pvRbFtFMx9RfcWMPUXGfj8xPuZQlM8vVkenvpMIr5nWi75NlPL8ePTK33qmny2Av xshDdSpN0XjbnlNr1z5eKpOgT5mWIGi+37jLVr0MEA93HFaiTAyCt+7i7CWYVxXJqbQ5 EtUx3gtQeoL8MXgBhuul1BAyxy7l+apUaDbhoaIvfDeZswDOz0zP0d23oBj2swP6BImi fh5AYh+12xjD9f0y8fgjsUSF4H7AalKxPJ2VLoSkNVilEBvq2zpRq0+H4kvMV/8i1T1m r3tw== X-Received: by 10.152.7.102 with SMTP id i6mr8888650laa.18.1368247623906; Fri, 10 May 2013 21:47:03 -0700 (PDT) Received: from opensuse.site ([94.29.72.160]) by mx.google.com with ESMTPSA id r9sm1783547lbr.3.2013.05.10.21.47.03 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 10 May 2013 21:47:03 -0700 (PDT) Date: Sat, 11 May 2013 08:47:02 +0400 From: Andrey Borzenkov To: Rigoberto Corujo Subject: Re: Obtaining the MAC address of the boot NIC for a PXE boot Message-ID: <20130511084702.3b23ee24@opensuse.site> In-Reply-To: <1368202377.58319.YahooMailNeo@web120202.mail.ne1.yahoo.com> 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> <1368202377.58319.YahooMailNeo@web120202.mail.ne1.yahoo.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.14; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.180 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: Sat, 11 May 2013 04:47:09 -0000 ÷ Fri, 10 May 2013 09:12:57 -0700 (PDT) Rigoberto Corujo ÐÉÛÅÔ: > > Thank you Andrey. šI can confirm that the net_default_interface, net_default_ip, and net_default_mac variables worked as expected. šI did notice, however, then when I'm in the grub shell and I type "set", these variables show up in the list, but they have no values, which makes it appear as if something is wrong. šIf I echo the variables, however, I do see their correct values. > Does it behave better with patch below? diff --git a/grub-core/kern/corecmd.c b/grub-core/kern/corecmd.c index cfab676..1700eb4 100644 --- a/grub-core/kern/corecmd.c +++ b/grub-core/kern/corecmd.c @@ -40,7 +40,7 @@ grub_core_cmd_set (struct grub_command *cmd __attribute__ ((unused)), { struct grub_env_var *env; FOR_SORTED_ENV (env) - grub_printf ("%s=%s\n", env->name, env->value); + grub_printf ("%s=%s\n", env->name, grub_env_get (env->name)); return 0; }