Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 6381713

Browse files
committed
[release/1.3] fix NoPivot for RuntimeRuncV2
Partially cherry-pick aaddaa2 (#1359) #1359 (comment) Signed-off-by: Akihiro Suda <[email protected]>
1 parent fa8c527 commit 6381713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/server/sandbox_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (c *criService) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox
271271

272272
var taskOpts []containerd.NewTaskOpts
273273
// TODO(random-liu): Remove this after shim v1 is deprecated.
274-
if c.config.NoPivot && ociRuntime.Type == plugin.RuntimeRuncV1 {
274+
if c.config.NoPivot && (ociRuntime.Type == plugin.RuntimeRuncV1 || ociRuntime.Type == plugin.RuntimeRuncV2) {
275275
taskOpts = append(taskOpts, containerd.WithNoPivotRoot)
276276
}
277277
// We don't need stdio for sandbox container.

0 commit comments

Comments
 (0)