[Top][All Lists]

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

Retrieving MAC address in grub2 network boot environment

From: Rick Salevsky
Subject: Retrieving MAC address in grub2 network boot environment
Date: Wed, 29 May 2013 15:35:54 +0200


i need some help with grub2 network boot. My plan is to load different
configs for different machines. At first I created a main grub.cfg with
including "configfile uEFI/test.cfg" which works fine and the test.cfg
is loading.

But now i will do something like this: "configfile uEFI/$mac.cfg".
I once could access EFI variables, and could read out the MAC
and make above work.
But..., I cannot find anymore how I have done that :(
The EFI variable including the MAC address seem to differ
between different platforms.

The function:
efinet2 MAC IP
but I failed how to parse this in grub2 scripting.
I couldn't find out how to assign the result of a function to variables.

Has anyone an i idea how I can resolve this?

Rick Salevsky
SUSE LINUX GmbH, Maxfeldstr. 5, D-90409 Nuernberg
Tel: +49-911-74053-538 - address@hidden
SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imend├Ârffer, HRB
21284 (AG N├╝rnberg)

reply via email to

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