summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2021-05-12 14:54:59 +0200
committerMichael Brown2021-05-12 14:57:35 +0200
commit191f8825cbd17a6819545e5633287e3d934039b6 (patch)
tree0d4ec7ae17fb56a08975e3a5d9e6041128ae6af5 /src/include/ipxe
parent[undi] Read TSC only when profiling (diff)
downloadipxe-191f8825cbd17a6819545e5633287e3d934039b6.tar.gz
ipxe-191f8825cbd17a6819545e5633287e3d934039b6.tar.xz
ipxe-191f8825cbd17a6819545e5633287e3d934039b6.zip
[image] Allow single-member archive images to be executed transparently
Provide image_extract_exec() as a helper method to allow single-member archive images (such as gzip compressed images) to be executed without an explicit "imgextract" step. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/image.h b/src/include/ipxe/image.h
index c6e723dc6..0a5a26034 100644
--- a/src/include/ipxe/image.h
+++ b/src/include/ipxe/image.h
@@ -200,6 +200,7 @@ extern int image_asn1 ( struct image *image, size_t offset,
struct asn1_cursor **cursor );
extern int image_extract ( struct image *image, const char *name,
struct image **extracted );
+extern int image_extract_exec ( struct image *image );
/**
* Increment reference count on an image