6262
6363// Config contains shim specific configuration
6464type Config struct {
65- Path string
66- Namespace string
67- WorkDir string
65+ Path string
66+ Namespace string
67+ WorkDir string
68+ // Criu is the path to the criu binary used for checkpoint and restore.
69+ //
70+ // Deprecated: runc option --criu is now ignored (with a warning), and the
71+ // option will be removed entirely in a future release. Users who need a non-
72+ // standard criu binary should rely on the standard way of looking up binaries
73+ // in $PATH.
6874 Criu string
6975 RuntimeRoot string
7076 SystemdCgroup bool
@@ -172,7 +178,6 @@ func (s *Service) Create(ctx context.Context, r *shimapi.CreateTaskRequest) (_ *
172178 s .config .WorkDir ,
173179 s .config .RuntimeRoot ,
174180 s .config .Namespace ,
175- s .config .Criu ,
176181 s .config .SystemdCgroup ,
177182 s .platform ,
178183 config ,
@@ -637,7 +642,7 @@ func getTopic(ctx context.Context, e interface{}) string {
637642 return runtime .TaskUnknownTopic
638643}
639644
640- func newInit (ctx context.Context , path , workDir , runtimeRoot , namespace , criu string , systemdCgroup bool , platform stdio.Platform , r * process.CreateConfig , rootfs string ) (* process.Init , error ) {
645+ func newInit (ctx context.Context , path , workDir , runtimeRoot , namespace string , systemdCgroup bool , platform stdio.Platform , r * process.CreateConfig , rootfs string ) (* process.Init , error ) {
641646 var options runctypes.CreateOptions
642647 if r .Options != nil {
643648 v , err := typeurl .UnmarshalAny (r .Options )
@@ -647,7 +652,7 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace, criu st
647652 options = * v .(* runctypes.CreateOptions )
648653 }
649654
650- runtime := process .NewRunc (runtimeRoot , path , namespace , r .Runtime , criu , systemdCgroup )
655+ runtime := process .NewRunc (runtimeRoot , path , namespace , r .Runtime , systemdCgroup )
651656 p := process .New (r .ID , runtime , stdio.Stdio {
652657 Stdin : r .Stdin ,
653658 Stdout : r .Stdout ,
0 commit comments