imgextract [--name <name>] [--timeout <timeout>] [--keep] <uri|image>
imgextract http://192.168.0.1/images/initrd.gz
Extract a single image from an archive image (which may be a compressed single-file archive).
A name for the extracted image can be specified using the --name
option. If no name is specified, then a default name will be constructed by stripping any archive suffix (such as .gz
for gzip archive images).
A download progress timeout can be specified (in milliseconds) using the --timeout
option.
The original archive image will be automatically discarded unless the --keep
option is specified.
Success | The image was successfully extracted |
---|---|
Failure | The image was not successfully extracted |
This command is available only when the build option IMAGE_ARCHIVE_CMD
is enabled.