help-grub
[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: Rigoberto Corujo
Subject: Re: Obtaining the MAC address of the boot NIC for a PXE boot
Date: Wed, 15 May 2013 10:09:28 -0700 (PDT)

>________________________________
> From: Andrey Borzenkov <address@hidden>
>To: Rigoberto Corujo <address@hidden> 
>Cc: "address@hidden" <address@hidden>; "address@hidden" <address@hidden> 
>Sent: Saturday, May 11, 2013 12:47 AM
>Subject: Re: Obtaining the MAC address of the boot NIC for a PXE boot
> 
>
>В 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;
>     }
>


Yes, Andrey.  With the patch, I can now see the values of the 
net_default_interface, net_default_ip, and net_default_mac variables when I 
type "set" at the grub shell.

Thank you.

Rigoberto



reply via email to

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