summaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-14 16:25:23 +0100
committerMichael Brown2007-01-14 16:25:23 +0100
commitc1fd6e8dc732b5150b970684612efe0e40cc4253 (patch)
treef1fe6a9cf0ad3aa032773bfaa7026399e451bd60 /src/core/image.c
parentTypo (diff)
downloadipxe-c1fd6e8dc732b5150b970684612efe0e40cc4253.tar.gz
ipxe-c1fd6e8dc732b5150b970684612efe0e40cc4253.tar.xz
ipxe-c1fd6e8dc732b5150b970684612efe0e40cc4253.zip
Once image type has been set, do not autoprobe further
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 7cf7f7bc..e0e842c0 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -155,6 +155,11 @@ int image_autoload ( struct image *image ) {
struct image_type *type;
int rc;
+ /* If image already has a type, use it */
+ if ( image->type )
+ return image_load ( image );
+
+ /* Otherwise probe for a suitable type */
for ( type = image_types ; type < image_types_end ; type++ ) {
DBGC ( image, "IMAGE %p trying type %s\n", image, type->name );
rc = image_load_type ( image, type );