Lines Matching refs:osutil
40 if err := osutil.WriteFile(configFile, config); err != nil {
43 if err := osutil.SandboxChown(configFile); err != nil {
49 cmd := osutil.Command("make", "oldconfig", "CC="+compiler)
50 if err := osutil.Sandbox(cmd, true, true); err != nil {
54 if _, err := osutil.Run(10*time.Minute, cmd); err != nil {
59 if err := osutil.CopyFile(configFile, outputConfig); err != nil {
64 cmd = osutil.Command("make", "bzImage", "-j", cpu, "CC="+compiler)
65 if err := osutil.Sandbox(cmd, true, true); err != nil {
69 if _, err := osutil.Run(time.Hour, cmd); err != nil {
87 if err := osutil.WriteExecFile(scriptFile, []byte(createImageScript)); err != nil {
91 cmd := osutil.Command(scriptFile, userspaceDir, bzImage)
96 "SYZ_CMDLINE_FILE="+osutil.Abs(cmdlineFile),
97 "SYZ_SYSCTL_FILE="+osutil.Abs(sysctlFile),
99 if _, err = osutil.Run(time.Hour, cmd); err != nil {
104 if err := osutil.CopyFile(filepath.Join(tempDir, "disk.raw"), imageFile); err != nil {
108 if err := osutil.CopyFile(filepath.Join(tempDir, "key"), keyFile); err != nil {
119 cmd := osutil.Command("make", "distclean", "-j", cpu)
120 if err := osutil.Sandbox(cmd, true, true); err != nil {
124 _, err := osutil.Run(10*time.Minute, cmd)
129 verr, ok := err.(*osutil.VerboseError)