Blame internal/osbuild2/xorrisofs_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type XorrisofsStageOptions struct {
Packit Service 15f37d
	// Filename of the ISO to create
Packit Service 15f37d
	Filename string `json:"filename"`
Packit Service 15f37d
Packit Service 15f37d
	// Volume ID to set
Packit Service 15f37d
	VolID string `json:"volid"`
Packit Service 15f37d
Packit Service 15f37d
	// System ID to set
Packit Service 15f37d
	SysID string `json:"sysid,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	Boot XorrisofsBoot `json:"boot,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	EFI string `json:"efi,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	// Install the argument (buildroot) as ISOLINUX isohybrid MBR
Packit Service 15f37d
	IsohybridMBR string `json:"isohybridmbr,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	// The ISO 9660 version (limits data size and filenames; min: 1, max: 4)
Packit Service 15f37d
	ISOLevel int `json:"isolevel,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
type XorrisofsBoot struct {
Packit Service 15f37d
	// Path to the boot image (on the ISO)
Packit Service 15f37d
	Image string `json:"image"`
Packit Service 15f37d
	// Path to the boot catalog file (on the ISO)
Packit Service 15f37d
	Catalog string `json:"catalog"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (XorrisofsStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
type XorrisofsStageInputs struct {
Packit Service 15f37d
	Tree *XorrisofsStageInput `json:"tree"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (XorrisofsStageInputs) isStageInputs() {}
Packit Service 15f37d
Packit Service 15f37d
type XorrisofsStageInput struct {
Packit Service 15f37d
	inputCommon
Packit Service 15f37d
	References XorrisofsStageReferences `json:"references"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (XorrisofsStageInput) isStageInput() {}
Packit Service 15f37d
Packit Service 15f37d
type XorrisofsStageReferences []string
Packit Service 15f37d
Packit Service 15f37d
func (XorrisofsStageReferences) isReferences() {}
Packit Service 15f37d
Packit Service 15f37d
// Assembles a Rock Ridge enhanced ISO 9660 filesystem (iso)
Packit Service 15f37d
func NewXorrisofsStage(options *XorrisofsStageOptions, inputs *XorrisofsStageInputs) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.xorrisofs",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
		Inputs:  inputs,
Packit Service 15f37d
	}
Packit Service 15f37d
}