summaryrefslogtreecommitdiffhomepage
path: root/pkg/v1/shim/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/v1/shim/service.go')
-rw-r--r--pkg/v1/shim/service.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/v1/shim/service.go b/pkg/v1/shim/service.go
index b9e1c0ced..e06a5562c 100644
--- a/pkg/v1/shim/service.go
+++ b/pkg/v1/shim/service.go
@@ -555,6 +555,10 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace string,
if err != nil {
return nil, errors.Wrap(err, "read oci spec")
}
+ if err := utils.UpdateVolumeAnnotations(r.Bundle, spec); err != nil {
+ return nil, errors.Wrap(err, "update volume annotations")
+ }
+
runsc.FormatLogPath(r.ID, config)
rootfs := filepath.Join(path, "rootfs")
runtime := proc.NewRunsc(runtimeRoot, path, namespace, r.Runtime, config)