manifest: rpm stage options for ostree commits

When building a fedora ostree commit, set the new ostree_booted flag in
the rpm stage and the dbpath to /usr/share/rpm
This commit is contained in:
Achilleas Koutsou 2022-08-25 11:30:38 +02:00 committed by Tom Gundersen
parent 0b3bfd0d02
commit 0c77e4be60
16 changed files with 49 additions and 15 deletions

View file

@ -245,6 +245,10 @@ func (p *OS) serialize() osbuild.Pipeline {
rpmOptions.Exclude.Docs = true
}
rpmOptions.GPGKeysFromTree = p.GPGKeyFiles
if p.OSTree != nil {
rpmOptions.OSTreeBooted = common.BoolToPtr(true)
rpmOptions.DBPath = "/usr/share/rpm"
}
pipeline.AddStage(osbuild.NewRPMStage(rpmOptions, osbuild.NewRpmStageSourceFilesInputs(p.packageSpecs)))
// If the /boot is on a separate partition, the prefix for the BLS stage must be ""