X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fexport_image.c;h=9c25be732eb8d9424bd30ecd905ec50159de271d;hp=8304ea01a8fda9af7cc622456679899e148a8fd4;hb=af8cdc72ef58ede31aa2b6e08ca81ec371b789a5;hpb=c9c5830dcd3152d13c777bb8a37902663a5cd2b4 diff --git a/src/export_image.c b/src/export_image.c index 8304ea01..9c25be73 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -124,7 +124,8 @@ wimlib_export_image(WIMStruct *src_wim, if (export_flags & ~(WIMLIB_EXPORT_FLAG_BOOT | WIMLIB_EXPORT_FLAG_NO_NAMES | WIMLIB_EXPORT_FLAG_NO_DESCRIPTIONS | - WIMLIB_EXPORT_FLAG_GIFT)) + WIMLIB_EXPORT_FLAG_GIFT | + WIMLIB_EXPORT_FLAG_WIMBOOT)) return WIMLIB_ERR_INVALID_PARAM; if (src_wim == NULL || dest_wim == NULL) @@ -263,6 +264,13 @@ wimlib_export_image(WIMStruct *src_wim, dest_wim->hdr.boot_idx = dest_wim->hdr.image_count; } + /* Possibly set WIMBoot flag */ + if (export_flags & WIMLIB_EXPORT_FLAG_WIMBOOT) { + wim_info_set_wimboot(dest_wim->wim_info, + dest_wim->hdr.image_count, + true); + } + } /* Set the reparse point fixup flag on the destination WIM if the flag * is set on the source WIM. */