diff --git a/internal/osbuild2/copy_stage.go b/internal/osbuild2/copy_stage.go index 43a26ca10..5827699df 100644 --- a/internal/osbuild2/copy_stage.go +++ b/internal/osbuild2/copy_stage.go @@ -25,13 +25,23 @@ func (CopyStageInputs) isStageInputs() {} type CopyStageReferences []string +type CopyStageInputsNew interface { + isCopyStageInputs() +} + +func (CopyStageInputs) isCopyStageInputs() {} + func (CopyStageReferences) isReferences() {} -func NewCopyStage(options *CopyStageOptions, inputs *CopyStageInputs, devices *Devices, mounts *Mounts) *Stage { +func NewCopyStage(options *CopyStageOptions, inputs CopyStageInputsNew, devices *Devices, mounts *Mounts) *Stage { + var stageInputs Inputs + if inputs != nil { + stageInputs = inputs.(Inputs) + } return &Stage{ Type: "org.osbuild.copy", Options: options, - Inputs: inputs, + Inputs: stageInputs, Devices: *devices, Mounts: *mounts, }