distro: add URL to OSTreeImageOptions

We need to add the URL to the manifest as an ostree source repo so that
osbuild can pull the commit to embed it in the boot ISO for the new
rhel-edge-installer image type.
This commit is contained in:
Achilleas Koutsou 2021-03-12 13:46:40 +01:00 committed by Tom Gundersen
parent 33cebcc8fc
commit 2edb057f3b
2 changed files with 2 additions and 0 deletions

View file

@ -97,6 +97,7 @@ type ImageOptions struct {
type OSTreeImageOptions struct {
Ref string
Parent string
URL string
}
// The SubscriptionImageOptions specify subscription-specific image options

View file

@ -1997,6 +1997,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
OSTree: distro.OSTreeImageOptions{
Ref: cr.OSTree.Ref,
Parent: cr.OSTree.Parent,
URL: cr.OSTree.URL,
},
},
api.allRepositories(),