Cloud 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 6dbc3c200e
commit 8367a4500a

View file

@ -351,6 +351,7 @@ func (s *Server) enqueueKojiCompose(taskID uint64, server, name, version, releas
},
Targets: targets,
ManifestDynArgsIdx: common.ToPtr(1),
ImageBootMode: ir.imageType.BootMode().String(),
}, []uuid.UUID{initID, manifestJobID}, channel)
if err != nil {
return id, HTTPErrorWithInternal(ErrorEnqueueingJob, err)