osbuild-worker: use the new ostree resolver API
This commit is contained in:
parent
f291f41dbc
commit
64f479092d
27 changed files with 318 additions and 136 deletions
9
vendor/github.com/osbuild/images/pkg/image/disk.go
generated
vendored
9
vendor/github.com/osbuild/images/pkg/image/disk.go
generated
vendored
|
|
@ -6,7 +6,6 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/osbuild/images/internal/common"
|
||||
"github.com/osbuild/images/internal/environment"
|
||||
"github.com/osbuild/images/internal/workload"
|
||||
"github.com/osbuild/images/pkg/artifact"
|
||||
|
|
@ -103,13 +102,7 @@ func (img *DiskImage) InstantiateManifest(m *manifest.Manifest,
|
|||
// NOTE(akoutsou): temporary workaround; filename required for GCP
|
||||
// TODO: define internal raw filename on image type
|
||||
rawImagePipeline.SetFilename("disk.raw")
|
||||
tarPipeline := manifest.NewTar(buildPipeline, rawImagePipeline, "archive")
|
||||
tarPipeline.Format = osbuild.TarArchiveFormatOldgnu
|
||||
tarPipeline.RootNode = osbuild.TarRootNodeOmit
|
||||
// these are required to successfully import the image to GCP
|
||||
tarPipeline.ACLs = common.ToPtr(false)
|
||||
tarPipeline.SELinux = common.ToPtr(false)
|
||||
tarPipeline.Xattrs = common.ToPtr(false)
|
||||
tarPipeline := newGCETarPipelineForImg(buildPipeline, rawImagePipeline, "archive")
|
||||
tarPipeline.SetFilename(img.Filename) // filename extension will determine compression
|
||||
imagePipeline = tarPipeline
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue