[ipxe-devel] [gPXE] [PATCH 1/2] consolidate int13 boot code

Michael Brown mbrown at fensystems.co.uk
Sat Oct 16 00:37:24 BST 2010

On Saturday 16 Oct 2010 00:05:54 Dave Hansen wrote:
> Each of the users of the int13 drive registration routines basically
> does the same thing.  Register the drive, try to boot it.  Return
> error on failure, and unregiser unless keep_san is set.
> This patch consolidates each of those users into a common helper
> function.  Perhaps keepsan.c needs a new name, but I think this is
> a decent place to put it.

This functionality is already present in iPXE; usr/autoboot.c contains generic 
code to hook a SAN device to a URL and boot from it.

I'm happy to rework your "boot-san" patch to apply to the iPXE tree, or you're 
welcome to do it yourself if you'd prefer.

I would recommend using a "skip booting from SAN" option rather than a "boot 
from SAN" option, to preserve consistency with other numeric options, where 
the absence of an option is taken to indicate a value of zero.

(Not CCing gpxe at etherboot.org because Marty Connor censors any messages I send 
to that list.)


More information about the ipxe-devel mailing list