Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git a/runtime/v1/shim/service.go b/runtime/v1/shim/service.go
  2. index 6e87f052..8967d847 100644
  3. --- a/runtime/v1/shim/service.go
  4. +++ b/runtime/v1/shim/service.go
  5. @@ -25,6 +25,7 @@ import (
  6. "io/ioutil"
  7. "os"
  8. "path/filepath"
  9. + sysruntime "runtime"
  10. "sync"
  11.  
  12. "github.com/containerd/console"
  13. @@ -659,7 +660,11 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace, criu st
  14. })
  15. p.Bundle = r.Bundle
  16. p.Platform = platform
  17. - p.Rootfs = rootfs
  18. + if sysruntime.GOOS == "darwin" {
  19. + p.Rootfs = filepath.Join(path, "rootfs")
  20. + } else {
  21. + p.Rootfs = rootfs
  22. + }
  23. p.WorkDir = workDir
  24. p.IoUID = int(options.IoUid)
  25. p.IoGID = int(options.IoGid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement