pipeline: add rawfs assembler support
Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
35055b3176
commit
976d59cfda
1 changed files with 21 additions and 0 deletions
21
internal/pipeline/rawfs_assembler.go
Normal file
21
internal/pipeline/rawfs_assembler.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package pipeline
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
// RawFSAssemblerOptions desrcibe how to assemble a tree into a raw filesystem
|
||||
// image.
|
||||
type RawFSAssemblerOptions struct {
|
||||
Filename string `json:"filename"`
|
||||
RootFilesystemUUDI uuid.UUID `json:"root_fs_uuid"`
|
||||
Size uint64 `json:"size"`
|
||||
}
|
||||
|
||||
func (RawFSAssemblerOptions) isAssemblerOptions() {}
|
||||
|
||||
// NewRawFSAssembler creates a new RawFS Assembler object.
|
||||
func NewRawFSAssembler(options *RawFSAssemblerOptions) *Assembler {
|
||||
return &Assembler{
|
||||
Name: "org.osbuild.rawfs",
|
||||
Options: options,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue