Skip to content

Commit

Permalink
image: always set filename for bootc raw pipeline
Browse files Browse the repository at this point in the history
In BIB, we intend to export multiple images from the same pipeline and
this is the expected filename for the raw images.  Set it so that it's
always disk.raw even when we're building a qcow2 or other image type.
  • Loading branch information
achilleas-k authored and cgwalters committed Mar 8, 2024
1 parent 2351177 commit 97c5bb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/image/bootc_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func (img *BootcDiskImage) InstantiateManifestFromContainers(m *manifest.Manifes

opts := &baseRawOstreeImageOpts{useBootupd: true}
baseImage := baseRawOstreeImage(img.OSTreeDiskImage, buildPipeline, opts)

// In BIB, we intend to export multiple images from the same pipeline and
// this is the expected filename for the raw images. Set it so that it's
// always disk.raw even when we're building a qcow2 or other image type.
baseImage.SetFilename("disk.raw")
switch imgFormat {
case platform.FORMAT_QCOW2:
// qcow2 runs without a build pipeline directly from "bib"
Expand Down

0 comments on commit 97c5bb0

Please sign in to comment.