[ipxe-devel] testing 'smbios/product' variable
Marek Salwerowicz
marek_sal at wp.pl
Mon Nov 12 14:12:11 UTC 2012
Hi all,
I am trying to determine the platform (Virtual / Physical) that boots my
iPXE environment.
I want to do a simple test using the ${smbios/product} variable
For VMware platform it contains "VMware Virtual Platform"
For VirtualBox it contains "VirtualBox"
I am trying to boot that simple script:
#!ipxe
set vmware 0
set vbox 0
set VBOXT VirtualBox
set VMWARET VMware Virtual Platform
iseq ${smbios/product} ${VMWARET} && set vmware 1
iseq ${smbios/product} ${VBOXT} && set vbox 1
echo vmware: ${vmware}
echo virtualbox: ${vbox}
shell
Unfortunately the result is:
Could not boot: Result too large (http://ipxe.org/46022001 )
But the same script typed manually in command line works without any issues.
Is this a bug or I am doing sth wrong?
Regards,
--
Marek Salwerowicz
More information about the ipxe-devel
mailing list