Skip to content

Commit

Permalink
manifest: return inline FDO cert from CoreOSInstaller pipeline
Browse files Browse the repository at this point in the history
The CoreOSInstaller pipeline supports adding inline data to the tree for
the FDO cert.  This needs to be returned by the pipeline object via the
getInline() method to attach the necessary data to the Sources array in
the manifest.
  • Loading branch information
achilleas-k authored and teg committed Dec 11, 2022
1 parent 351576f commit 19ec3be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/manifest/coreos_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ func (p *CoreOSInstaller) serializeStart(packages []rpmmd.PackageSpec) {
}
}

func (p *CoreOSInstaller) getInline() []string {
// inline data for FDO cert
if p.FDO != nil && p.FDO.DiunPubKeyRootCerts != "" {
return []string{p.FDO.DiunPubKeyRootCerts}
}
return []string{}
}

func (p *CoreOSInstaller) serializeEnd() {
if len(p.packageSpecs) == 0 {
panic("serializeEnd() call when serialization not in progress")
Expand Down

0 comments on commit 19ec3be

Please sign in to comment.