Blame internal/osbuild2/sysconfig_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type SysconfigStageOptions struct {
Packit Service 15f37d
	Kernel  SysconfigKernelOptions  `json:"kernel,omitempty"`
Packit Service 15f37d
	Network SysconfigNetworkOptions `json:"network,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
type SysconfigNetworkOptions struct {
Packit Service 15f37d
	Networking bool `json:"networking,omitempty"`
Packit Service 15f37d
	NoZeroConf bool `json:"no_zero_conf,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
type SysconfigKernelOptions struct {
Packit Service 15f37d
	UpdateDefault bool   `json:"update_default,omitempty"`
Packit Service 15f37d
	DefaultKernel string `json:"default_kernel,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (SysconfigStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
func NewSysconfigStage(options *SysconfigStageOptions) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.sysconfig",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
	}
Packit Service 15f37d
}