grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining the MAC address of the boot NIC for a PXE boot


From: Andrey Borzenkov
Subject: Re: Obtaining the MAC address of the boot NIC for a PXE boot
Date: Sat, 11 May 2013 08:47:02 +0400

В Fri, 10 May 2013 09:12:57 -0700 (PDT)
Rigoberto Corujo <address@hidden> пишет:

> 
> 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;
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]