osbuild: add isolinux stage
Add support for the org.osbuild.isolinux stage.
This commit is contained in:
parent
204b4177ec
commit
c0fcbfc5c2
1 changed files with 27 additions and 0 deletions
27
internal/osbuild/isolinux_stage.go
Normal file
27
internal/osbuild/isolinux_stage.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package osbuild
|
||||
|
||||
type ISOLinuxStageOptions struct {
|
||||
Product ISOLinuxProduct `json:"product"`
|
||||
Kernel ISOLinuxKernel `json:"kernel"`
|
||||
}
|
||||
|
||||
func (ISOLinuxStageOptions) isStageOptions() {}
|
||||
|
||||
type ISOLinuxProduct struct {
|
||||
Name string `json:"name"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
type ISOLinuxKernel struct {
|
||||
Dir string `json:"dir"`
|
||||
|
||||
Opts []string `json:"opts,omitempty"`
|
||||
}
|
||||
|
||||
func NewISOLinuxStage(options *ISOLinuxStageOptions, inputPipeline string) *Stage {
|
||||
return &Stage{
|
||||
Type: "org.osbuild.isolinux",
|
||||
Options: options,
|
||||
Inputs: NewPipelineTreeInputs("data", inputPipeline),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue