[ipxe-devel] can ipxe recognise if disk exist?

Michael Brown mbrown at fensystems.co.uk
Tue Apr 10 11:45:15 UTC 2012


On Tuesday 10 Apr 2012 12:09:46 Oliver Rath wrote:
> Im using ipxe here to boot several things. Now i have one boot-point (in
> the new menu-style :-) ), which is only interesting, if a harddisk
> exists on the machine, where ipxe is running. Is there a possibility to
> see an existing hardisk (boolean will do).
> 
> Maybe something like this:
> 
> isset ${localdrive} && item localboot Boot from local drive

No, there's no explicit support for that.

The most logical and general solution would probably be to add some kind of 
"sanstat" command that could display the status of drives.  In the same way 
that you could currently use

  ifstat net1 && goto net1_exists || goto net1_doesnt_exist

you could then use the sanstat command to check for the existence of specified 
drive numbers.

Michael



More information about the ipxe-devel mailing list