diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-11 23:22:05 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-11 23:25:51 +0200 |
commit | 2aa35d25b3e3c379559d2cb152f59803f7a22dcd (patch) | |
tree | 8abdbd0aa70c08380862e5068dda7a151c8b2127 /pkg/adapter | |
parent | 146719718e24864a261ba27a2ad1ad81581de0dd (diff) | |
download | podman-2aa35d25b3e3c379559d2cb152f59803f7a22dcd.tar.gz podman-2aa35d25b3e3c379559d2cb152f59803f7a22dcd.tar.bz2 podman-2aa35d25b3e3c379559d2cb152f59803f7a22dcd.zip |
build: use the configured runtime
Now buildah honors the runtime configured with podman.
Closes: https://github.com/giuseppe/crun/issues/69
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/adapter')
-rw-r--r-- | pkg/adapter/runtime.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/adapter/runtime.go b/pkg/adapter/runtime.go index 4a3b41297..03419c0bd 100644 --- a/pkg/adapter/runtime.go +++ b/pkg/adapter/runtime.go @@ -288,9 +288,8 @@ func (r *LocalRuntime) Build(ctx context.Context, c *cliconfig.BuildValues, opti options.CommonBuildOpts = commonOpts options.SystemContext = systemContext - if c.Flag("runtime").Changed { - options.Runtime = r.GetOCIRuntimePath() - } + options.Runtime = r.GetOCIRuntimePath() + if c.Quiet { options.ReportWriter = ioutil.Discard } |