From 204b4177ec2cd6070f6151c61bc8093c5ae8a47d Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 20 Sep 2022 20:56:48 +0200 Subject: [PATCH] osbuild: add squashfs stage Add support for the org.osbuild.squashfs stage. --- internal/osbuild/squashfs_stage.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/osbuild/squashfs_stage.go diff --git a/internal/osbuild/squashfs_stage.go b/internal/osbuild/squashfs_stage.go new file mode 100644 index 000000000..8764f74bd --- /dev/null +++ b/internal/osbuild/squashfs_stage.go @@ -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), + } +}