From c4ab6406844eb188c917089db13edf93e4189054 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 20 Mar 2024 16:39:14 +0100 Subject: [PATCH] fixup! use osbuild.NewContainersInputForSingleSource() helper --- pkg/manifest/raw_bootc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {