From e60e11167e96b5383e64addb7b309804ba51b20f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 18 Nov 2024 12:41:44 +0100 Subject: [PATCH] libpod: pass down NoPivotRoot to Buildah Closes: https://github.com/containers/podman/issues/24546 Signed-off-by: Giuseppe Scrivano --- libpod/runtime_img.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go index 585e1f0217..bac8ec31f2 100644 --- a/libpod/runtime_img.go +++ b/libpod/runtime_img.go @@ -120,6 +120,8 @@ func (r *Runtime) Build(ctx context.Context, options buildahDefine.BuildOptions, if options.Runtime == "" { options.Runtime = r.GetOCIRuntimePath() } + options.NoPivotRoot = r.config.Engine.NoPivotRoot + // share the network interface between podman and buildah options.NetworkInterface = r.network id, ref, err := imagebuildah.BuildDockerfiles(ctx, r.store, options, dockerfiles...)