manifest/os: make ostree parameters optional
The OSTree parameters can be set after initialisation. We should only require parameters to be set at initialisation time if we have no good defaults. In the case of OSTree the default is to not enable OSTree support.
This commit is contained in:
parent
b0b5a48c5f
commit
64b4ad7c31
4 changed files with 43 additions and 20 deletions
|
|
@ -221,7 +221,20 @@ func osPipeline(m *manifest.Manifest,
|
|||
kernelName = c.GetKernel().Name
|
||||
}
|
||||
|
||||
pl := manifest.NewOSPipeline(m, buildPipeline, t.rpmOstree, options.OSTree.Parent, options.OSTree.URL, repos, pt, bootLoader, t.arch.legacy, kernelName)
|
||||
pl := manifest.NewOSPipeline(m, buildPipeline, repos, pt, bootLoader, t.arch.legacy, kernelName)
|
||||
|
||||
if t.rpmOstree {
|
||||
var parent *manifest.OSPipelineOSTreeParent
|
||||
if options.OSTree.Parent != "" && options.OSTree.URL != "" {
|
||||
parent = &manifest.OSPipelineOSTreeParent{
|
||||
Checksum: options.OSTree.Parent,
|
||||
URL: options.OSTree.URL,
|
||||
}
|
||||
}
|
||||
pl.OSTree = &manifest.OSPipelineOSTree{
|
||||
Parent: parent,
|
||||
}
|
||||
}
|
||||
|
||||
if len(osChain) >= 1 {
|
||||
pl.ExtraBasePackages = osChain[0].Include
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue