osbuild: add squashfs stage

Add support for the org.osbuild.squashfs stage.
This commit is contained in:
Achilleas Koutsou 2022-09-20 20:56:48 +02:00 committed by Christian Kellner
parent 3d772b6846
commit 204b4177ec

View file

@ -0,0 +1,17 @@
package osbuild
type SquashfsStageOptions struct {
Filename string `json:"filename"`
Compression FSCompression `json:"compression"`
}
func (SquashfsStageOptions) isStageOptions() {}
func NewSquashfsStage(options *SquashfsStageOptions, inputPipeline string) *Stage {
return &Stage{
Type: "org.osbuild.squashfs",
Options: options,
Inputs: NewPipelineTreeInputs("tree", inputPipeline),
}
}