Lines Matching refs:osutil
64 if !osutil.IsExist(env.Image) {
82 osutil.MkdirAll(rootDir)
83 osutil.MkdirAll(bundleDir)
84 osutil.MkdirAll(imageDir)
94 if err := osutil.WriteFile(filepath.Join(bundleDir, "config.json"), []byte(vmConfig)); err != nil {
101 if err := osutil.CopyFile(bin, filepath.Join(imageDir, "init")); err != nil {
105 rpipe, wpipe, err := osutil.LongPipe()
127 osutil.Run(time.Minute, inst.runscCmd("delete", "-force", inst.name))
197 cmd := osutil.Command(inst.image, args...)
207 osutil.Run(time.Minute, inst.runscCmd("delete", "-force", inst.name))
211 osutil.Run(time.Minute, inst.runscCmd("delete", "-force", inst.name))
225 if err := osutil.CopyFile(hostSrc, filepath.Join(inst.imageDir, fname)); err != nil {
244 rpipe, wpipe, err := osutil.LongPipe()
328 osutil.Run(time.Minute, inst.runscCmd("debug", "-stacks", inst.name))