diff --git a/pkg/manifest/raw_bootc.go b/pkg/manifest/raw_bootc.go index 452679b52e..5684fceb7d 100644 --- a/pkg/manifest/raw_bootc.go +++ b/pkg/manifest/raw_bootc.go @@ -99,8 +99,11 @@ func (p *RawBootcImage) serialize() osbuild.Pipeline { if len(p.Users) == 1 && p.Users[0].Key != nil { opts.RootSSHAuthorizedKeys = []string{*p.Users[0].Key} } + if len(p.containerSpecs) != 1 { + panic(fmt.Sprintf("expected a single container input got %v", p.containerSpecs)) + } inputs := osbuild.ContainerDeployInputs{ - Images: osbuild.NewContainersInputForSources(p.containerSpecs), + Images: osbuild.NewContainersInputForSingleSource(p.containerSpecs[0]), } devices, mounts, err := osbuild.GenBootupdDevicesMounts(p.filename, p.PartitionTable) if err != nil {