manifest: support specifying squashfs compression for ISOs

Add support for specifying the squashfs compression method for ISOTree
pipelines from the caller.
Build Fedora ISOs with lz4 compression and RHEL with xz.
This commit is contained in:
Achilleas Koutsou 2022-11-22 18:37:21 +01:00 committed by Christian Kellner
parent cb0280c8c9
commit 5d55ccf109
5 changed files with 33 additions and 3 deletions

View file

@ -27,6 +27,8 @@ type ImageInstaller struct {
Users []users.User
Groups []users.Group
SquashfsCompression string
ISOLabelTempl string
Product string
Variant string
@ -120,6 +122,8 @@ func (img *ImageInstaller) InstantiateManifest(m *manifest.Manifest,
isoTreePipeline.Users = img.Users
isoTreePipeline.Groups = img.Groups
isoTreePipeline.SquashfsCompression = img.SquashfsCompression
isoTreePipeline.OSPipeline = osPipeline
isoTreePipeline.KernelOpts = img.AdditionalKernelOpts

View file

@ -22,6 +22,8 @@ type OSTreeInstaller struct {
Users []users.User
Groups []users.Group
SquashfsCompression string
ISOLabelTempl string
Product string
Variant string
@ -101,6 +103,9 @@ func (img *OSTreeInstaller) InstantiateManifest(m *manifest.Manifest,
isoTreePipeline.OSName = img.OSName
isoTreePipeline.Users = img.Users
isoTreePipeline.Groups = img.Groups
isoTreePipeline.SquashfsCompression = img.SquashfsCompression
isoTreePipeline.KSPath = "/ostree.ks"
isoTreePipeline.OSTree = &img.Commit