aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-03-22 17:16:52 +0530
committerAditya R <arajan@redhat.com>2022-03-23 11:22:55 +0530
commiteedce31eb4aa8c0678c24cdf907ebd971ce02233 (patch)
tree0b254749304a008a3e2cc2425f0bbc7978964e2e /pkg/domain/infra/tunnel
parentd0e9f28f87d4fc9e7ed8f465709db89a03b9376b (diff)
downloadpodman-eedce31eb4aa8c0678c24cdf907ebd971ce02233.tar.gz
podman-eedce31eb4aa8c0678c24cdf907ebd971ce02233.tar.bz2
podman-eedce31eb4aa8c0678c24cdf907ebd971ce02233.zip
import: allow users to set os, arch and variant of imports
Allows users to set `--os` , `--arch` and `--variant` of the image created from the custom import. Following is useful when user is already aware of the values which are correct for their generated rootfs Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/images.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index 62eacb19f..18e10e8dd 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -230,6 +230,7 @@ func (ir *ImageEngine) Import(ctx context.Context, opts entities.ImageImportOpti
f *os.File
)
options := new(images.ImportOptions).WithChanges(opts.Changes).WithMessage(opts.Message).WithReference(opts.Reference)
+ options.WithOS(opts.OS).WithArchitecture(opts.Architecture).WithVariant(opts.Variant)
if opts.SourceIsURL {
options.WithURL(opts.Source)
} else {