Weldr API: set the image boot mode in OSBuildJob options

Set the image boot mode (as a string value) in the OSBuildJob options.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-08-01 13:49:25 +02:00 committed by Ondřej Budai
parent 8367a4500a
commit 0a5c82086a

View file

@ -2581,6 +2581,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
Build: imageType.BuildPipelines(),
Payload: imageType.PayloadPipelines(),
},
ImageBootMode: imageType.BootMode().String(),
}, "")
if err == nil {
err = api.store.PushCompose(composeID, mf, imageType, bp, size, targets, jobId, packages)