Skip to content

Commit

Permalink
fixup! use osbuild.NewContainersInputForSingleSource() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Mar 20, 2024
1 parent ee150f4 commit c4ab640
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/manifest/raw_bootc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4ab640

Please sign in to comment.