mirror of
https://github.com/ipxe/ipxe
synced 2026-01-31 03:30:54 +03:00
[image] Add "imgextract" command for extracting archive images
Add the concept of extracting an image from an archive (which could be a single-file archive such as a gzip-compressed file), along with an "imgextract" command to expose this functionality to scripts. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
16
src/include/usr/imgarchive.h
Normal file
16
src/include/usr/imgarchive.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _USR_IMGARCHIVE_H
|
||||
#define _USR_IMGARCHIVE_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Archive image management
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <ipxe/image.h>
|
||||
|
||||
extern int imgextract ( struct image *image, const char *name );
|
||||
|
||||
#endif /* _USR_IMGARCHIVE_H */
|
||||
Reference in New Issue
Block a user