summaryrefslogtreecommitdiffstats
path: root/src/usr/autoboot.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-29 03:31:14 +0200
committerMichael Brown2007-07-29 03:31:14 +0200
commit43013da9bf02439b4726d8afef15f7ce97d1c469 (patch)
treeb9cacbe294de8d0b06e04799746fc9377010ccb5 /src/usr/autoboot.c
parentApplied a modified version of holger's regparm patches. (diff)
downloadipxe-43013da9bf02439b4726d8afef15f7ce97d1c469.tar.gz
ipxe-43013da9bf02439b4726d8afef15f7ce97d1c469.tar.xz
ipxe-43013da9bf02439b4726d8afef15f7ce97d1c469.zip
Quick hack to get AoE back in to the tree, on a par with the current
iSCSI hack.
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r--src/usr/autoboot.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index 4bc43d5a..53283d18 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -27,6 +27,7 @@
#include <usr/dhcpmgmt.h>
#include <usr/imgmgmt.h>
#include <usr/iscsiboot.h>
+#include <usr/aoeboot.h>
#include <usr/autoboot.h>
/** @file
@@ -88,13 +89,15 @@ static int boot_filename ( const char *filename ) {
* @ret rc Return status code
*/
static int boot_root_path ( const char *root_path ) {
- int rc;
/* Quick hack */
- if ( ( rc = iscsiboot ( root_path ) ) != 0 )
- return rc;
+ if ( strncmp ( root_path, "iscsi:", 6 ) == 0 ) {
+ return iscsiboot ( root_path );
+ } else if ( strncmp ( root_path, "aoe:", 4 ) == 0 ) {
+ return aoeboot ( root_path );
+ }
- return 0;
+ return -ENOTSUP;
}
/**