mirror of
https://github.com/ipxe/ipxe
synced 2025-12-10 21:41:09 +03:00
For performing installations direct to a SAN target, it can be very useful to hook a SAN disk and then proceed to perform a filename boot. For example, the user may wish to hook the (empty) SAN installation disk and then boot into the OS installer via TFTP. This provides an alternative mechanism to using "keep-san" and relying on the BIOS to fall through to boot from the installation media, which is unreliable on many BIOSes. When a root-path is specified in addition to a boot filename, attempt to hook the root-path as a SAN disk before booting from the specified filename. Since the root-path may be used for non-SAN purposes (e.g. an NFS root mount point), ignore the root-path if it contains a URI scheme that we do not support. Originally-implemented-by: Jarrod Johnson <jarrod.b.johnson@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
26 lines
511 B
C
26 lines
511 B
C
#ifndef _USR_AUTOBOOT_H
|
|
#define _USR_AUTOBOOT_H
|
|
|
|
/** @file
|
|
*
|
|
* Automatic booting
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#include <ipxe/in.h>
|
|
struct net_device;
|
|
struct uri;
|
|
struct settings;
|
|
|
|
extern int uriboot ( struct uri *filename, struct uri *root_path );
|
|
extern struct uri *
|
|
fetch_next_server_and_filename ( struct settings *settings );
|
|
extern int netboot ( struct net_device *netdev );
|
|
extern int autoboot ( void );
|
|
|
|
extern int pxe_menu_boot ( struct net_device *netdev );
|
|
|
|
#endif /* _USR_AUTOBOOT_H */
|