[ipxe-devel] testing 'smbios/product' variable

Michael Brown mbrown at fensystems.co.uk
Mon Nov 12 14:36:34 UTC 2012

On 12/11/12 14:12, Marek Salwerowicz wrote:
> iseq ${smbios/product} ${VMWARET} && set vmware 1
> iseq ${smbios/product} ${VBOXT} && set vbox 1
> <snip>
> 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?

Scripts terminate when any command fails.  In your case, at least one of 
the "iseq" commands will (by definition) always fail, causing the script 
to terminate.  You need to use the "||" operator to prevent this from 

   iseq ${smbios/product} ${VMWARET} && set vmware 1 ||
   iseq ${smbios/product} ${VBOXT} && set vbox 1 ||

I've updated http://ipxe.org/46022001 to include a note explaining this.


More information about the ipxe-devel mailing list