@@ -248,8 +248,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts
248248 if err != nil {
249249 return nil , errdefs .FromGRPC (err )
250250 }
251- t , err := newTask (id , namespace , int (cr .Pid ), s , r .events ,
252- proc .NewRunc (ropts .RuntimeRoot , sopts .Bundle , namespace , rt , ropts .CriuPath , ropts .SystemdCgroup ), r .tasks , bundle )
251+ t , err := newTask (id , namespace , int (cr .Pid ), s , r .events , r .tasks , bundle )
253252 if err != nil {
254253 return nil , err
255254 }
@@ -341,15 +340,8 @@ func (r *Runtime) loadTasks(ctx context.Context, ns string) ([]*Task, error) {
341340 }
342341 continue
343342 }
344- ropts , err := r .getRuncOptions (ctx , id )
345- if err != nil {
346- log .G (ctx ).WithError (err ).WithField ("id" , id ).
347- Error ("get runtime options" )
348- continue
349- }
350343
351- t , err := newTask (id , ns , pid , s , r .events ,
352- proc .NewRunc (ropts .RuntimeRoot , bundle .path , ns , ropts .Runtime , ropts .CriuPath , ropts .SystemdCgroup ), r .tasks , bundle )
344+ t , err := newTask (id , ns , pid , s , r .events , r .tasks , bundle )
353345 if err != nil {
354346 log .G (ctx ).WithError (err ).Error ("loading task type" )
355347 continue
0 commit comments