rhel84: only download parent commit for installer

The parent commit would be added to the sources unconditionally. This
is only necessary for the edge-installer image type.

This doesn't technically change the build behaviour of an existing
distro and image type.  It simply avoids unnecessarily downloading an
ostree commit when only the ref is needed.
It does change the 'sources' section of the manifest however.
This commit is contained in:
Achilleas Koutsou 2021-04-12 11:42:51 +02:00 committed by Ondřej Budai
parent a49ba1e672
commit e8a1509d46

View file

@ -139,7 +139,7 @@ func (t *imageTypeS2) Manifest(c *blueprint.Customizations,
}
var commits []ostreeCommit
if options.OSTree.Parent != "" && options.OSTree.URL != "" {
if t.bootISO && options.OSTree.Parent != "" && options.OSTree.URL != "" {
commit := ostreeCommit{Checksum: options.OSTree.Parent, URL: options.OSTree.URL}
commits = []ostreeCommit{commit}
}