diff options
| author | Michael Brown | 2025-05-20 16:27:49 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-05-20 16:34:49 +0200 |
| commit | d15a11f3a4f49999447e9bd0c499455d1d9ef078 (patch) | |
| tree | a9f02040526ad98147084d32fae43b9609ff8fb7 /src/interface | |
| parent | [lkrn] Add support for EFI zboot compressed kernel images (diff) | |
| download | ipxe-d15a11f3a4f49999447e9bd0c499455d1d9ef078.tar.gz ipxe-d15a11f3a4f49999447e9bd0c499455d1d9ef078.tar.xz ipxe-d15a11f3a4f49999447e9bd0c499455d1d9ef078.zip | |
[image] Use image replacement when executing extracted images
Use image_replace() to transfer execution to the extracted image,
rather than calling image_exec() directly. This allows the original
archive image to be freed immediately if it was marked as an
automatically freeable image (e.g. via "chain --autofree").
In particular, this ensures that in the case of an archive image
containing another archive image (such as an EFI zboot kernel wrapper
image containing a gzip-compressed kernel image), the intermediate
extracted image will be freed as early as possible, since extracted
images are always marked as automatically freeable.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
0 files changed, 0 insertions, 0 deletions
