>________________________________ > From: Andrey Borzenkov <arvidj...@gmail.com> >To: Rigoberto Corujo <rcor...@yahoo.com> >Cc: "help-g...@gnu.org" <help-g...@gnu.org>; "grub-devel@gnu.org" ><grub-devel@gnu.org> >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 <rcor...@yahoo.com> пишет: > >> >> 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 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel