Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/runtime/v1/shim/service.go b/runtime/v1/shim/service.go
- index 6e87f052..8967d847 100644
- --- a/runtime/v1/shim/service.go
- +++ b/runtime/v1/shim/service.go
- @@ -25,6 +25,7 @@ import (
- "io/ioutil"
- "os"
- "path/filepath"
- + sysruntime "runtime"
- "sync"
- "github.com/containerd/console"
- @@ -659,7 +660,11 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace, criu st
- })
- p.Bundle = r.Bundle
- p.Platform = platform
- - p.Rootfs = rootfs
- + if sysruntime.GOOS == "darwin" {
- + p.Rootfs = filepath.Join(path, "rootfs")
- + } else {
- + p.Rootfs = rootfs
- + }
- p.WorkDir = workDir
- p.IoUID = int(options.IoUid)
- p.IoGID = int(options.IoGid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement